Skip to contents

load mzML spectra

Usage

loadSpectraMzML(Dir, filter = NA, nameSpectra = TRUE, verbose = TRUE)

Arguments

Dir

Character, parent directory of spectra.

filter

Character vector, filter out spectra which match the given vector.

nameSpectra

Logical, if TRUE the spectra in the resulting list will be named according to the dirname.

verbose

Logical, print logs to console

Value

List of MALDIquant::MassSpectra

Examples

dataDir <- system.file("extdata", package="MALDIcellassay")

loadSpectraMzML(file.path(dataDir, "Koch2024mzML"))
#> 13:36 Loading spectra...
#> 
#> Progress: 100%  
#> $`0.0001`
#> S4 class type            : MassSpectrum         
#> Number of m/z values     : 86835                
#> Range of m/z values      : 1802.533 - 24896.647 
#> Range of intensity values: 1.225e+05 - 8.714e+05
#> Memory usage             : 1.327 MiB            
#> File                     : /home/runner/work/_temp/Library/MALDIcellassay/extdata/Koch2024mzML/0.0001.mzML
#>