transformationProductsStructure-class | R Documentation |
Holds information for all TPs for a set of parents, including structural information.
## S4 method for signature 'transformationProductsStructure'
convertToMFDB(TPs, out, includeParents = FALSE)
## S4 method for signature 'transformationProductsStructure'
filter(
obj,
...,
removeParentIsomers = FALSE,
removeTPIsomers = FALSE,
removeDuplicates = FALSE,
minSimilarity = NULL,
verbose = TRUE,
negate = FALSE
)
## S4 method for signature 'transformationProductsStructure'
plotGraph(
obj,
which,
components = NULL,
structuresMax = 25,
prune = TRUE,
onlyCompletePaths = FALSE,
width = NULL,
height = NULL
)
## S4 method for signature 'transformationProductsStructure'
plotVenn(obj, ..., commonParents = FALSE, labels = NULL, vennArgs = NULL)
## S4 method for signature 'transformationProductsStructure'
plotUpSet(
obj,
...,
commonParents = FALSE,
labels = NULL,
nsets = length(list(...)) + 1,
nintersects = NA,
upsetArgs = NULL
)
## S4 method for signature 'transformationProductsStructure'
consensus(
obj,
...,
absMinAbundance = NULL,
relMinAbundance = NULL,
uniqueFrom = NULL,
uniqueOuter = FALSE,
labels = NULL
)
out |
The file name of the the output |
includeParents |
Set to |
obj , TPs |
|
... |
For For |
removeParentIsomers |
If |
removeTPIsomers |
If |
removeDuplicates |
If |
minSimilarity |
Minimum structure similarity (‘0-1’) that a TP should have relative to its parent. This
data is only available if the |
verbose |
If set to |
negate |
If |
which |
Either a |
components |
If specified (i.e. not |
structuresMax |
An |
prune |
If |
onlyCompletePaths |
If |
width , height |
Passed to |
commonParents |
Only consider TPs from parents that are common to all compared objects. |
labels |
A |
vennArgs |
A |
nsets , nintersects |
See |
upsetArgs |
A list with any further arguments to be passed 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 TPs 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 |
This (virtual) class is derived from the transformationProducts
base class, please see its
documentation for more details. Objects from this class are returned by TP generators. More
specifically, algorithms that works with chemical structures (e.g. biotransformer
), uses this class to
store their results. The methods defined for this class extend the functionality for the base
transformationProducts
class.
filter
returns a filtered transformationProductsStructure
object.
plotGraph
returns the result of visNetwork
.
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 transformationProductsStructure
object that is produced by merging results
from multiple transformationProductsStructure
objects.
convertToMFDB(transformationProductsStructure)
: Exports this object as a ‘.csv’ file that can be used as a MetFrag
local
database. Any duplicate TPs (formed by different pathways or parents) will be merged based on their
InChIKey.
filter(transformationProductsStructure)
: Performs rule-based filtering. Useful to simplify and clean-up the data.
plotGraph(transformationProductsStructure)
: Plots an interactive hierarchy graph of the transformation products. The
resulting graph can be browsed interactively and allows exploration of the different TP formation pathways.
Furthermore, results from TP componentization can be used to match the hierarchy
with screening results. The graph is rendered with visNetwork.
plotVenn(transformationProductsStructure)
: plots a Venn diagram (using VennDiagram) outlining unique and shared
candidates of up to five different featureAnnotations
objects.
plotUpSet(transformationProductsStructure)
: Plots an UpSet diagram (using the upset
function)
outlining unique and shared TPs between different transformationProductsStructure
objects.
consensus(transformationProductsStructure)
: Generates a consensus from different
transformationProductsStructure
objects. Currently this removes any hierarchical data, and all TPs are
considered to originate from the same (original) parent.
The methods that compare different objects (e.g. plotVenn
and
consensus
) use the InChIKey to match TPs between objects. Moreover, the parents between objects
are matched by their name. Hence, it is crucial that the input parents to generateTPs
(i.e. the parents
argument) are named equally.
transformationProducts
transformationProductsStructure
transformationProductsStructureConsensus
transformationProductsCTS
transformationProductsBT
transformationProductsLibrary
consensus
: If the retDir
values differs between matched TPs it will be set to ‘0’. If
structure similarity data is available (i.e. calcSims=TRUE
to generateTPs
) then the mean
similarity is calculated.
Conway2017patRoon
\insertRefLex2014patRoon
The base class transformationProducts
for more relevant methods and generateTPs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.