featureAnnotations-class | R Documentation |
Holds information for all feature group annotations.
## S4 method for signature 'featureAnnotations'
annotations(obj)
## S4 method for signature 'featureAnnotations'
groupNames(obj)
## S4 method for signature 'featureAnnotations'
length(x)
## S4 method for signature 'featureAnnotations,ANY,missing,missing'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'featureAnnotations,ANY,missing'
x[[i, j]]
## S4 method for signature 'featureAnnotations'
x$name
## S4 method for signature 'featureAnnotations'
as.data.table(
x,
fGroups = NULL,
fragments = FALSE,
countElements = NULL,
countFragElements = NULL,
OM = FALSE,
normalizeScores = "none",
excludeNormScores = defaultExclNormScores(x)
)
## S4 method for signature 'featureAnnotations'
delete(obj, i = NULL, j = NULL, ...)
## S4 method for signature 'featureAnnotations'
filter(
obj,
minExplainedPeaks = NULL,
scoreLimits = NULL,
elements = NULL,
fragElements = NULL,
lossElements = NULL,
topMost = NULL,
OM = FALSE,
negate = FALSE
)
## S4 method for signature 'featureAnnotations'
plotVenn(obj, ..., labels = NULL, vennArgs = NULL)
## S4 method for signature 'featureAnnotations'
plotUpSet(
obj,
...,
labels = NULL,
nsets = length(list(...)) + 1,
nintersects = NA,
upsetArgs = NULL
)
obj , x |
|
i , j |
For |
... |
For the For Others: Any further (and unique) |
drop |
ignored. |
name |
The feature group name (partially matched). |
fGroups |
The |
fragments |
If |
countElements , countFragElements |
A |
OM |
For For |
normalizeScores |
A |
excludeNormScores |
A
For |
minExplainedPeaks |
Minimum number of explained peaks. Set to |
scoreLimits |
Filter results by their scores. Should be a named |
elements |
Only retain candidate formulae (neutral form) that match a
given elemental restriction. The format of |
fragElements , lossElements |
Specifies elemental restrictions for
fragment or neutral loss formulae (charged form). Candidates are retained
if at least one of the fragment formulae follow (or not follow if
|
topMost |
Only keep a maximum of |
negate |
If |
labels |
A |
vennArgs |
A |
nsets , nintersects |
See |
upsetArgs |
A list with any further arguments to be passed to
|
This class stores annotation data for feature groups, such as molecular formulae, SMILES identifiers, compound names
etc. The class of objects that are generated by formula and compound annotation (generateFormulas
and
generateCompounds
) are based on this class.
as.data.table
returns a data.table
.
delete
returns the object for which the specified data was removed.
filter
returns a filtered featureAnnotations
object.
plotVenn
(invisibly) returns a list with the following fields:
gList
the gList
object that was returned by
the utilized VennDiagram plotting function.
areas
The total area for each plotted group.
intersectionCounts
The number of intersections between groups.
The order for the areas
and intersectionCounts
fields is the same as the parameter order
from the used plotting function (see e.g. draw.pairwise.venn
and
draw.triple.venn
).
annotations(featureAnnotations)
: Accessor for the groupAnnotations
slot.
groupNames(featureAnnotations)
: returns a character
vector with the names of the
feature groups for which data is present in this object.
length(featureAnnotations)
: Obtain total number of candidates.
x[i
: Subset on feature groups.
x[[i
: Extracts annotation data for a feature group.
$
: Extracts annotation data for a feature group.
as.data.table(featureAnnotations)
: Generates a table with all annotation data for each feature group and other
information such as element counts.
delete(featureAnnotations)
: Completely deletes specified annotations.
filter(featureAnnotations)
: Provides rule based filtering for feature group annotations. Useful to eliminate
unlikely candidates and speed up further processing.
plotVenn(featureAnnotations)
: plots a Venn diagram (using VennDiagram) outlining unique and shared
candidates of up to five different featureAnnotations
objects.
plotUpSet(featureAnnotations)
: plots an UpSet diagram (using the upset
function) outlining
unique and shared candidates between different featureAnnotations
objects.
groupAnnotations
A list
with for each annotated feature group a data.table
with annotation data.
Use the annotations
method for access.
scoreTypes
A character
with all the score types present in this object.
scoreRanges
The minimum and maximum score values of all candidates for each feature group. Used for normalization.
Calculation of the aromaticity index (AI) and related double bond equivalents (DBE_AI) is performed as described in Koch 2015. Formula classification is performed by the rules described in Abdulla 2013. Filtering of OM related molecules is performed as described in Koch 2006 and Kujawinski 2006. (see references).
workflowStep
featureAnnotations
formulas
formulasConsensus
formulasSet
formulasUnset
formulasSIRIUS
compounds
compoundsConsensus
compoundsMF
compoundsSet
compoundsUnset
compoundsSIRIUS
Koch2015patRoon
\insertRefAbdulla2013patRoon
\insertRefKoch2006patRoon
\insertRefKujawinski2006patRoon
Conway2017patRoon
\insertRefLex2014patRoon
formulas-class
and compounds-class
The derived formulas
and compounds
classes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.