peaksData | R Documentation |
As explained in the Chromatograms class documentation, the Chromatograms
object is a container for chromatographic data that includes chromatographic
peaks data (retention time and related intensity values, also referred to
as peaks data variables in the context of Chromatograms
) and metadata of
individual chromatograms (so called chromatograms variables).
The peaks data variables information can be accessed using the
peaksData()
function. It is also possible to access specific peaks
variables using $
.
The peaks data can be accessed, replaced but also filtered/subsetted. Refer to the sections below for more details.
## S4 method for signature 'Chromatograms'
peaksData(
object,
columns = peaksVariables(object),
f = processingChunkFactor(object),
BPPARAM = bpparam(),
drop = FALSE,
...
)
## S4 replacement method for signature 'Chromatograms'
peaksData(object) <- value
## S4 method for signature 'Chromatograms'
peaksVariables(object, ...)
## S4 method for signature 'Chromatograms'
rtime(object, ...)
## S4 replacement method for signature 'Chromatograms'
rtime(object) <- value
## S4 method for signature 'Chromatograms'
intensity(object, ...)
## S4 replacement method for signature 'Chromatograms'
intensity(object) <- value
## S4 method for signature 'Chromatograms'
filterPeaksData(
object,
variables = character(),
ranges = numeric(),
match = c("any", "all"),
keep = TRUE
)
object |
A Chromatograms object. |
columns |
For |
f |
|
BPPARAM |
Parallel setup configuration. See |
drop |
|
... |
Additional arguments passed to the method. |
value |
For |
variables |
For |
ranges |
For |
match |
For |
keep |
For |
Functions that filter a Chromatograms
's peaks data (i.e., peaksData
).
These functions remove peaks data that do not meet the
specified conditions. If a chromatogram in a Chromatograms
object is
filtered, only the corresponding peaks variable pairs (i.e., rows) in the
peaksData
are removed, while the chromatogram itself remains in the object.
The available functions to filter chromatographic peaks data include:
filterPeaksData()
: Filters numerical peaks data variables based on the
specified numerical ranges
parameter. This method returns the same input
Chromatograms
object, but the filtering step is added to the processing
queue. The filtered data will be reflected when the user accesses
peaksData
. This function does not reduce the number of chromatograms
in the object, but it removes the specified peaks data (e.g., "rtime" and
"intensity" pairs) from the peaksData
.
In the case of a read-only backend, (such as the ChromBackendMzR), the replacement of the peaks data is not possible. The peaks data can be filtered, but the filtered data will not be saved in the backend. This means the original mzml files will not be affected by computations performed on the Chromatograms.
Philippine Louail
Chromatograms for a general description of the Chromatograms
object, and chromData for accessing,substituting and filtering
chromatographic variables. For more information on the queuing
of processings and parallelization for larger dataset processing
see processingQueue.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.