pred-tox | R Documentation |
Functions to predict toxicities from SMILES and/or SIRIUS+CSI:FingerID
fingerprints using the
MS2Tox package.
## S4 method for signature 'featureGroups'
calculateTox(fGroups, featureAnn)
## S4 method for signature 'featureGroupsSet'
calculateTox(fGroups, featureAnn)
## S4 method for signature 'compounds'
predictTox(
obj,
LC50Mode = "static",
concUnit = "ugL",
updateScore = FALSE,
scoreWeight = 1,
parallel = TRUE
)
## S4 method for signature 'featureGroupsScreening'
predictTox(obj, LC50Mode = "static", concUnit = "ugL")
## S4 method for signature 'featureGroupsScreening'
calculateTox(fGroups, featureAnn = NULL)
## S4 method for signature 'featureGroupsScreeningSet'
predictTox(obj, ...)
## S4 method for signature 'featureGroupsScreeningSet'
calculateTox(fGroups, featureAnn = NULL)
## S4 method for signature 'compoundsSet'
predictTox(obj, ...)
## S4 method for signature 'compoundsSIRIUS'
predictTox(obj, type = "FP", LC50Mode = "static", concUnit = "ugL")
## S4 method for signature 'formulasSet'
predictTox(obj, ...)
## S4 method for signature 'formulasSIRIUS'
predictTox(obj, LC50Mode = "static", concUnit = "ugL")
fGroups |
For For |
featureAnn |
A |
obj |
The workflow object for which predictions should be performed, e.g. feature groups with screening
results ( |
LC50Mode |
The mode used for predictions: should be |
concUnit |
The concentration unit for calculated toxicities. Can be molar based ( |
updateScore , scoreWeight |
If |
parallel |
If set to |
... |
\setsWF Further arguments passed to the non-sets workflow method. |
type |
Which types of predictions should be performed: should be |
The MS2Tox R package predicts toxicities from SMILES and/or
MS/MS fingerprints obtained with SIRIUS+CSI:FingerID
. The predictTox
method functions interface with
this package to predict toxicities, which can then be assigned to feature groups with the calculateTox
method
function.
predictTox
returns an object amended with LC 50 values (LC50_SMILES
/LC50_SIRFP
columns).
calculateTox
returns a featureGroups
based object amended with toxicity values for each
feature group (accessed with the toxicities
method).
The toxicities are predicted with the predictTox
generic functions,
which accepts the following input:
Suspect screening results. The SMILES data is used to predict toxicities for suspect hits.
Formula annotation data obtained with "sirius"
algorithm (generateFormulasSIRIUS
). The
predictions are performed for each formula candidate using SIRIUS+CSI:FingerID
fingerprints. For this
reason, the getFingerprint
argument must be set to TRUE
when generating the formula data.
Compound annotation data obtained with the "sirius"
algorithm (generateCompoundsSIRIUS
).
The predictions are performed for each annotation candidate using its SMILES and/or
SIRIUS+CSI:FingerID
fingerprints. The predictions are performed on a per formula basis, hence,
toxicities for isomers will be equal.
Compound annotation data obtained with algorithms other than "sirius"
. The toxicities are predicted
from SMILES data.
When SMILES data is used then predictions of toxicities are generally more accurate. However,
calculations with SIRIUS+CSI:FingerID
fingerprints are faster and only require the formula and MS/MS
spectrum, i.e. not the full structure. Hence, calculations with SMILES are mostly useful in
suspect screening workflows, or with high confidence compound annotation data, whereas MS/MS fingerprints are
suitable with unknowns.
For annotation data the calculations are performed for all candidates. This can especially lead to long
running calculations when SMILES data is used. Hence, it is strongly recommended to first
prioritize the annotation results, e.g. with the topMost
argument to the
filter method.
When toxicities are predicted from SIRIUS+CSI:FingerID
fingerprints then only formula and MS/MS
spectra are used, even if compound annotations are used for input. The major difference is that with formula
annotation input all formula candidates for which a fingerprint could be generated are considered, whereas
with compound annotations only candidate formulae are considered for which also a structure could be assigned.
Hence, the formula annotation input could be more comprehensive, whereas predictions from structure annotations
could lead to more representative results as only formulae are considered for which at least one structure could be
assigned.
The calculateTox
generic function is used to assign toxicities for each
feature using the toxicities discussed in the previous section. The function takes toxicities from suspect
screening results and/or feature annotation data. If multiple toxicities were predicted for the same feature
group, for instance when multiple annotation candidates or suspect hits for this feature group are present, then a
toxicities is assigned for all toxicities. These values can later be easily aggregated with e.g. the
as.data.table function.
The rcdk package and OpenBabel tool are used
internally to calculate molecular weights. Please make sure that OpenBabel
is installed.
OBoyle2011patRoon
\addCitationsrcdk1
Peets2022patRoon
Concentration prediction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.