Description Usage Arguments Value Objects of the class Slots Constructors and alike Accessing and sub-setting Author(s) See Also Examples
The MSsliceList
allows to group several MSslice
objects. Each of the MSslice
objects is supposed to define a
different slice of the MS data (defined by a m/z values and
retention time range) and to contain the intensity values for the
slice across several samples. The MSsliceList
object can then
contain the data of several different such slices. For example, an
MSslice
object could contain the intensity values for a
peak (defined by its mz and rt range) across all samples of an
experiment (i.e. an xcmsSet
object). The
MSsliceList
could then contain the values for several or all
peaks identified in an experiment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## S4 method for signature 'MSsliceList'
intrange(object)
## S4 method for signature 'MSsliceList'
intranges(object)
## S4 method for signature 'MSsliceList'
length(x)
MSsliceList(...)
## S4 method for signature 'MSsliceList'
mzrange(object)
## S4 method for signature 'MSsliceList'
mzranges(object)
## S4 method for signature 'MSsliceList'
rtrange(object)
## S4 method for signature 'MSsliceList'
rtranges(object)
## S4 method for signature 'MSsliceList'
slices(object)
## S4 replacement method for signature 'MSsliceList'
slices(object) <- value
|
(in alphabetic order)
object |
An |
x |
For |
value |
For |
... |
For |
Refer to the method and function description above for detailed information on the returned result object.
MSsliceList
objects can be created by the constructor
function MSsliceList
but by default they are supposed to be
returned by the msSlice
method for xcmsSet
objects with mzrange
and rtrange
parameters being
matrices specifying different slices of data.
A list of MSslice
objects.
Constructor method to create a new MSsliceList
instance
accepting either a list of MSslice
objects or
individual MSslice
objects.
If the provided parameters mzrange
and rtrange
define multiple slices, the method returns a MSsliceList
object from an xcmsRaw
or
xcmsSet
object. See the help of
msSlice
for more information.
Get the range of the intensity value ranges of the individual slices within the object.
Returns a list of the intensity range for each individual slice within the object.
Get the length of the object, i.e. the number of MSslice
objects stored within the object.
Get the range of m/z value ranges of the individual slices within the object.
Returns a list of the m/z value ranges of the individual slices within the object.
Subsets the MSsliceList
object object and returns a
MSsliceList
with only the elements selected by i
.
Extract a single MSslice
object from the
MSsliceList
.
Get the range of retention time ranges of the slices within the object.
Returns a list of the retention time ranges of the individual slices within the object.
Getter and setter method for the slices
slot.
Returns the list of MSslice
objects.
Johannes Rainer.
xcmsSet
, xcmsRaw
,
MSdata
, MSslice
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ## Load the faahKO package with the test data for the xcms package.
library(faahKO)
xset <- faahko
## Define several data sub-sets and extract the corresponding values from
## the xcmsSet object. This will extract the intensity values of the
## defined slices from each individual sample.
rtr <- rbind(c(2600, 2670),
c(2900, 2920)
)
mzr <- rbind(c(300, 400),
c(401, 402)
)
msl <- msSlice(xset, rtrange=rtr, mzrange=mzr)
msl
## Get the number of slices
length(msl)
## Get the mz, rt and intensity range. This corresponds to the range of
## ranges of the individual slices across all samples.
mzrange(msl)
rtrange(msl)
intrange(msl)
## Get the ranges for each individual slice
mzranges(msl)
rtranges(msl)
intranges(msl)
## Sub-set the MSsliceList object.
msl[2]
## Extract an individual MSslice object
msl[[2]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.