Get MS2 spectra of peaks from databaseClass object.

getMS2spectrum(
  lab.id,
  database,
  polarity = c("positive", "negative"),
  ce = "30"
)

Arguments

lab.id

The lab ID of metabolite.

database

Database (databaseClass object).

polarity

positive or negative.

ce

Collision value.

Value

A MS2 spectrum (data.frame).

See also

The example and demo data of this function can be found https://tidymass.github.io/metid/articles/metid.html

Author

Xiaotao Shen xiaotao.shen@outlook.com