comparison | R Documentation |
Functionality to compare feature groups and make a consensus.
comparison(..., groupAlgo, groupArgs = list(rtalign = FALSE))
## S4 method for signature 'featureGroups'
comparison(..., groupAlgo, groupArgs = list(rtalign = FALSE))
## S4 method for signature 'featureGroupsComparison,missing'
plot(x, retMin = FALSE, ...)
## S4 method for signature 'featureGroupsComparison'
plotVenn(obj, which = NULL, ...)
## S4 method for signature 'featureGroupsComparison'
plotUpSet(obj, which = NULL, ...)
## S4 method for signature 'featureGroupsComparison'
plotChord(obj, addSelfLinks = FALSE, addRetMzPlots = TRUE, ...)
## S4 method for signature 'featureGroupsComparison'
consensus(
obj,
absMinAbundance = NULL,
relMinAbundance = NULL,
uniqueFrom = NULL,
uniqueOuter = FALSE,
verifyAnaInfo = TRUE
)
## S4 method for signature 'featureGroupsSet'
comparison(..., groupAlgo, groupArgs = list(rtalign = FALSE))
## S4 method for signature 'featureGroupsComparisonSet'
consensus(obj, ...)
... |
For For For |
groupAlgo |
The |
groupArgs |
A |
x , obj |
The |
retMin |
If |
which |
A character vector specifying one or more labels of compared
feature groups. For |
addSelfLinks |
If |
addRetMzPlots |
Set to |
absMinAbundance , relMinAbundance |
Minimum absolute or relative
(‘0-1’) abundance across objects for a result to be kept. For
instance, |
uniqueFrom |
Set this argument to only retain feature groups that are unique
within one or more of the objects for which the consensus is made.
Selection is done by setting the value of |
uniqueOuter |
If |
verifyAnaInfo |
If |
Feature groups objects originating from differing feature finding and/or grouping algorithms (or their parameters) may be compared to assess their output and generate a consensus.
The comparison
method generates a
featureGroupsComparison
object from given feature groups
objects, which in turn may be used for (visually) comparing presence of
feature groups and generating a consensus. Internally, this function will
collapse each feature groups object to pseudo features objects by
averaging their retention times, m/z values and intensities, where
each original feature groups object becomes an 'analysis'. All
pseudo features are then grouped using
regular feature grouping algorithms so that a
comparison can be made.
plot
generates an m/z vs retention time plot.
plotVenn
plots a Venn diagram outlining unique and shared
feature groups between up to five compared feature groups.
plotUpSet
plots an UpSet diagram outlining unique and shared
feature groups.
plotChord
plots a chord diagram to visualize the distribution
of feature groups.
consensus
combines all compared feature groups and averages their retention, m/z and intensity
data. Not yet supported for sets workflows.
comparison
returns a featureGroupsComparison
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
).
consensus
returns a featureGroups
object with a consensus from the compared feature
groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.