features-class | R Documentation |
Holds information for all features present within a set of analysis.
## S4 method for signature 'features'
length(x)
## S4 method for signature 'features'
show(object)
## S4 method for signature 'features'
featureTable(obj)
## S4 method for signature 'features'
analysisInfo(obj)
## S4 method for signature 'features'
analyses(obj)
## S4 method for signature 'features'
replicateGroups(obj)
## S4 method for signature 'features'
as.data.table(x)
## S4 method for signature 'features'
filter(
obj,
absMinIntensity = NULL,
relMinIntensity = NULL,
retentionRange = NULL,
mzRange = NULL,
mzDefectRange = NULL,
chromWidthRange = NULL,
qualityRange = NULL,
negate = FALSE
)
## S4 method for signature 'features,ANY,missing,missing'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'features,ANY,missing'
x[[i]]
## S4 method for signature 'features'
x$name
## S4 method for signature 'features'
delete(obj, i = NULL, j = NULL, ...)
## S4 method for signature 'features'
calculatePeakQualities(obj, weights, flatnessFactor, parallel = TRUE)
## S4 method for signature 'features'
getTICs(obj, retentionRange = NULL, MSLevel = 1)
## S4 method for signature 'features'
getBPCs(obj, retentionRange = NULL, MSLevel = 1)
## S4 method for signature 'features'
plotTICs(
obj,
retentionRange = NULL,
MSLevel = 1,
retMin = FALSE,
title = NULL,
colourBy = c("none", "analyses", "rGroups"),
showLegend = TRUE,
xlim = NULL,
ylim = NULL,
...
)
## S4 method for signature 'features'
plotBPCs(
obj,
retentionRange = NULL,
MSLevel = 1,
retMin = FALSE,
title = NULL,
colourBy = c("none", "analyses", "rGroups"),
showLegend = TRUE,
xlim = NULL,
ylim = NULL,
...
)
## S4 method for signature 'featuresSet'
sets(obj)
## S4 method for signature 'featuresSet'
show(object)
## S4 method for signature 'featuresSet'
as.data.table(x)
## S4 method for signature 'featuresSet,ANY,missing,missing'
x[i, ..., sets = NULL, drop = TRUE]
## S4 method for signature 'featuresSet'
filter(obj, ..., negate = FALSE, sets = NULL)
## S4 method for signature 'featuresSet'
unset(obj, set)
## S4 method for signature 'featuresKPIC2'
delete(obj, i = NULL, j = NULL, ...)
## S4 method for signature 'featuresXCMS'
delete(obj, i = NULL, j = NULL, ...)
## S4 method for signature 'featuresXCMS3'
delete(obj, i = NULL, j = NULL, ...)
obj , x , object |
|
absMinIntensity , relMinIntensity |
Minimum absolute/relative intensity for features to be kept. The relative
intensity is determined from the feature with highest intensity (within the same analysis). Set to ‘0’ or |
retentionRange , mzRange , mzDefectRange , chromWidthRange |
Range of retention time (in seconds), m/z, mass
defect (defined as the decimal part of m/z values) or chromatographic peak width (in seconds), respectively.
Features outside this range will be removed. Should be a numeric vector with length of two containing the min/max
values. The maximum can be |
qualityRange |
Used to filter features by their peak qualities/scores
(see |
negate |
If set to |
i , j |
For |
... |
For For 1features |
drop |
ignored. |
name |
The analysis name (partially matched). |
weights |
A named |
flatnessFactor |
Passed to MetaClean as the |
parallel |
If set to |
MSLevel |
Integer vector with the ms levels (i.e., 1 for MS1 and 2 for MS2) to obtain TIC traces. |
retMin |
Plot retention time in minutes (instead of seconds). |
title |
Character string used for title of the plot. If |
colourBy |
Sets the automatic colour selection: "none" for a single colour or "analyses"/"rGroups" for a distinct colour per analysis or analysis replicate group. |
showLegend |
Plot a legend if TRUE. |
xlim , ylim |
Sets the plot size limits used by
|
sets |
\setsWF For |
set |
\setsWF The name of the set. |
This class provides a way to store intensity, retention times, m/z and other data for all features in a set of
analyses. The class is virtual
and derived objects are created by 'feature finders' such as
findFeaturesOpenMS
, findFeaturesXCMS
and findFeaturesBruker
.
featureTable
: A list
containing a
data.table
for each analysis with feature data
analysisInfo
: A data.frame
containing a column with
analysis name (analysis
), its path (path
), and other columns
such as replicate group name (group
) and blank reference
(blank
).
delete
returns the object for which the specified data was removed.
calculatePeakQualities
returns a modified object amended with peak qualities and scores.
length(features)
: Obtain total number of features.
show(features)
: Shows summary information for this object.
featureTable(features)
: Get table with feature information
analysisInfo(features)
: Get analysis information
analyses(features)
: returns a character
vector with the names of the
analyses for which data is present in this object.
replicateGroups(features)
: returns a character
vector with the names of the
replicate groups for which data is present in this object.
as.data.table(features)
: Returns all feature data in a table.
filter(features)
: Performs common rule based filtering of features. Note
that this (and much more) functionality is also provided by the
filter
method defined for featureGroups
. However,
filtering a features
object may be useful to avoid grouping large
amounts of features.
x[i
: Subset on analyses.
x[[i
: Extract a feature table for an analysis.
$
: Extract a feature table for an analysis.
delete(features)
: Completely deletes specified features.
calculatePeakQualities(features)
: Calculates peak qualities for each feature. This uses
MetaClean R package to calculate the following metrics:
Apex-Boundary Ratio
, FWHM2Base
, Jaggedness
, Modality
, Symmetry
, Gaussian
Similarity
, Sharpness
, Triangle Peak Area Similarity Ratio
and Zig-Zag index
. Please see the
MetaClean publication (referenced below) for more details. For each metric, an additional score is calculated
by normalizing all feature values (unless the quality metric definition has a fixed range) and scale from ‘0’
(worst) to ‘1’ (best). Then, a totalScore
for each feature is calculated by the (weighted) sum of all
score values.
getTICs(features)
: Obtain the total ion chromatogram/s (TICs) of the analyses.
getBPCs(features)
: Obtain the base peak chromatogram/s (BPCs) of the analyses.
plotTICs(features)
: Plots the TICs of the analyses.
plotBPCs(features)
: Plots the BPCs of the analyses.
features
List of features per analysis file. Use the featureTable
method for access.
analysisInfo
Analysis group information. Use the analysisInfo
method for access.
workflowStep
features
featuresSet
featuresUnset
featuresFromFeatGroups
featuresConsensus
featuresBruker
featuresEnviPick
featuresKPIC2
featuresOpenMS
featuresSAFD
featuresSIRIUS
featuresBrukerTASQ
featuresXCMS
featuresXCMS3
featuresSetfeatures
\setsWFNewMethodsFeatfeaturesUnsetThe adduct annotations for the selected set (e.g. as passed to
makeSet
) are used to convert all feature masses to ionic m/z values.
filter
and the subset operator ([
) have specific arguments to choose/filter by (feature
presence in) sets. See the sets
argument description.
For calculatePeakQualities
: sometimes MetaClean may return NA
for the Gaussian
Similarity
metric, in which case it will be set to ‘0’.
Rick Helmus <r.helmus@uva.nl> and Ricardo Cunha <cunha@iuta.de> (getTICs
,
getBPCs
, plotTICs
and plotBPCs
functions)
Chetnik2020patRoon
findFeatures
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.