View source: R/functions-xcmsSet.R
xcmsSet | R Documentation |
This function handles the construction of xcmsSet objects. It finds peaks in batch mode and pre-sorts files from subdirectories into different classes suitable for grouping.
xcmsSet(files = NULL, snames = NULL, sclass = NULL, phenoData = NULL,
profmethod = "bin", profparam = list(),
polarity = NULL, lockMassFreq=FALSE,
mslevel=NULL, nSlaves=0, progressCallback=NULL,
scanrange = NULL, BPPARAM = bpparam(),
stopOnError = TRUE, ...)
files |
path names of the NetCDF/mzXML files to read |
snames |
sample names. By default the file name without extension is used. |
sclass |
sample classes. |
phenoData |
|
profmethod |
Method to use for profile generation. Supported
values are |
profparam |
parameters to use for profile generation. |
polarity |
filter raw data for positive/negative scans |
lockMassFreq |
Performs correction for Waters LockMass function |
mslevel |
perform peak picking on data of given mslevel |
nSlaves |
DEPRECATED, use |
progressCallback |
function to be called, when progressInfo changes (useful for GUIs) |
scanrange |
scan range to read |
BPPARAM |
a |
stopOnError |
Logical specifying whether the feature detection
call should stop on the first encountered error (the default), or
whether feature detection is performed in all files regardless
eventual failures for individual files in which case all errors are
reported as |
... |
further arguments to the |
The default values of the files
, snames
, sclass
, and
phenoData
arguments cause the function to recursively search
for readable files. The filename without extention is used for the
sample name. The subdirectory path is used for the sample class.
If the files contain both positive and negative spectra, the polarity
can be selected explicitly. The default (NULL) is to read all scans.
If phenoData
is provided, it is stored to the phenoData
slot of the returned xcmsSet
class. If that data.frame
contains a column named “class”, its content will be returned
by the sampclass
method and thus be used for the
group/class assignment of the individual files (e.g. for peak grouping
etc.). For more details see the help of the xcmsSet-class
.
The step size (in m/z) to use for profile generation can be submitted
either using the profparam
argument
(e.g. profparam=list(step=0.1)
) or by submitting
step=0.1
. By specifying a value of 0
the profile matrix
generation can be skipped.
The feature/peak detection algorithm can be specified with the
method
argument which defaults to the "matchFilter"
method (findPeaks.matchedFilter
). Possible values are
returned by getOption("BioC")$xcms$findPeaks.methods
.
The lock mass correction allows for the lock mass scan to be added back in with the last working scan. This correction gives better reproducibility between sample sets.
A xcmsSet
object.
The arguments profmethod
and profparam
have no influence
on the feature/peak detection. The step size parameter step
for
the profile generation in the findPeaks.matchedFilter
peak detection algorithm can be passed using the ...
.
Colin A. Smith, csmith@scripps.edu
xcmsSet-class
,
findPeaks
,
profStep
,
profMethod
,
profBin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.