checkFeatures | R Documentation |
These functions provide interactive utilities to explore and review workflow data using a shiny graphical user interface (GUI). In addition, unsatisfactory data (e.g. noise identified as a feature and unrelated feature groups in a component) can easily be selected for removal.
checkFeatures(
fGroups,
session = "checked-features.yml",
EICParams = getDefEICParams(),
clearSession = FALSE
)
checkComponents(
components,
fGroups,
session = "checked-components.yml",
EICParams = getDefEICParams(),
clearSession = FALSE
)
## S4 method for signature 'components'
checkComponents(
components,
fGroups,
session = "checked-components.yml",
EICParams = getDefEICParams(),
clearSession = FALSE
)
importCheckFeaturesSession(
sessionIn,
sessionOut,
fGroups,
rtWindow = 6,
mzWindow = 0.002,
overWrite = FALSE
)
## S4 method for signature 'featureGroups'
checkFeatures(
fGroups,
session = "checked-features.yml",
EICParams = getDefEICParams(),
clearSession = FALSE
)
getMCTrainData(fGroups, session)
predictCheckFeaturesSession(fGroups, session, model = NULL, overWrite = FALSE)
fGroups |
A This should be the 'new' object for |
session |
The session file name. |
EICParams |
A named |
clearSession |
If |
components |
The |
sessionIn , sessionOut |
The file names for the input and output sessions. |
rtWindow |
The retention time window (seconds) used to relate 'old' with 'new' feature groups. |
mzWindow |
The m/z window (in Da) used to relate 'old' with 'new' feature groups. |
overWrite |
Set to |
model |
The model that was created with MetaClean and that should be used to predict pass/fail data. If
|
The data selected for removal is stored in sessions. These are ‘YAML’ files to allow easy external
manipulation. The sessions can be used to restore the selections that were made for data removal when the GUI tool is
executed again. Furthermore, functionality is provided to import and export sessions. To actually remove the data the
filter
method should be used with the session file as input.
checkComponents
is used to review components and their feature groups contained within. A typical use
case is to verify that peaks from features that were annotated as related adducts and/or isotopes are correctly
aligned.
importCheckFeaturesSession
is used to import a session file that was generated from a different
featureGroups
object. This is useful to avoid re-doing manual interpretation of chromatographic peaks
when, for instance, feature group data is re-created with different parameters.
checkFeatures
is used to review chromatographic information for feature groups. Its main purpose is
to assist in reviewing the quality of detected feature (groups) and easily select unwanted data such as features
with poor peak shapes or noise.
getMCTrainData
converts a session created by checkFeatures
to a data.frame
that can be
used by the MetaClean to train a new model. The output format is comparable to that from
getPeakQualityMetrics
.
predictCheckFeaturesSession
Uses ML data from MetaClean to predict the quality (Pass/Fail) of
feature group data, and converts this to a session which can be reviewed with checkFeatures
and used to
remove unwanted feature groups by filter
.
The topMost
and topMostByRGroup
EIC parameters (EICParams
) are ignored.
checkComponents
: Some componentization algorithms (e.g. generateComponentsNontarget
and generateComponentsTPs
) may output components where the same feature group in a component is
present multiple times, for instance, when multiple TPs are matched to the same feature group. If such a feature
group is selected for removal, then all of its result in the component will be marked for removal.
getMCTrainData
only uses session data for selected feature groups. Selected features for removal are
ignored, as this is not supported by MetaClean.
Chetnik2020patRoon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.