R/ms2_plot_mass_dataset.R
ms2_plot_mass_dataset.Rd
Identify metabolites based on MS1 or MS/MS database.
ms2_plot_mass_dataset(
object,
variable_id,
variable_index,
polarity = c("positive", "negative"),
ms1.match.ppm = 25,
ms2.match.ppm = 30,
mz.ppm.thr = 400,
database,
interactive_plot = FALSE
)
A mass_dataset class obejct.
variable_id
variable_index
The polarity of data, "positive"or "negative".
Precursor match ppm tolerance.
Fragment ion match ppm tolerance.
Accurate mass tolerance for m/z error calculation.
MS2 database name or MS database.
interactive_plot
A list of ggplot2 object.
The example and demo data of this function can be found https://tidymass.github.io/metid/articles/metid.html