Learn R Programming

MALDIcellassay (version 0.4.47)

loadSpectra: load bruker MALDI target plate spectra

Description

load bruker MALDI target plate spectra

Usage

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

Value

List of MALDIquant::MassSpectra

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 the console.

Examples

Run this code
dataDir <- system.file("extdata", package="MALDIcellassay")
unzip(file.path(dataDir, "example-raw-spectra.zip"))

loadSpectra("example-raw-spectra/")

unlink("example-raw-spectra/", recursive = TRUE)

Run the code above in your browser using DataLab