Skip to contents
  • Internal Function *

This function takes a .mzxml/.mzML file and imports the MS/MS data only to further create a list containing two sublists with the scan information (fisrt sublist) and the MS2 spectra (second sublist)

Usage

read_mzxml(file, threads = 3, mode = c("inMemory", "onDisk"))

Arguments

file

The vector of names of ms2 files. MS2 file must be mzXML or mzML.

threads

Thread number

mode

inMemory or onDisk

Value

Return ms2 data. This is a list.

Author

Xiaotao Shen inspired from the masstools package https://www.tidymass.org

Examples

ProcA2_file <- system.file("extdata",
  "ProcyanidinA2_neg_20eV.mzXML",
  package = "MS2extract"
)

ProcA2_raw <- read_mzxml(ProcA2_file)
#> • Processing: ProcyanidinA2_neg_20eV.mzXML
#> • Found 1 CE value: 20
#> • Remember to match CE velues in spec_metadata when exporting your library