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, ...)
data.frame
or AnnotatedDataFrame
defining the sample names and classes and other sample related
properties. If not provided, the argument sclass
or the
subdirectories in which the samples are stored will be
used to specify sample grouping.findPeaks
method of the
xcmsRaw
class
xcmsSet
object.
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
.
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.
xcmsSet-class
,
findPeaks
,
profStep
,
profMethod
,
xcmsPapply