loadSpectraMzML: load mzML spectra

View source: R/loadSpectra.R

loadSpectraMzMLR Documentation

load mzML spectra

Description

load mzML spectra

Usage

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

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

centroided

Logical, if FALSE (default) a list of MALDIquant::MassSpectrum is returned, otherwise a list of MALDIquant::MassPeaks are returned.

Value

       List of MALDIquant::MassSpectra

Examples

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

loadSpectraMzML(file.path(dataDir, "Koch2024mzML"))

CeMOS-Mannheim/MALDIcellassay documentation built on Jan. 24, 2025, 11:17 p.m.