Consensus structural classifications for a molecular formula
construct.RdGenerate a consensus structural classification for a molecular formula.
Arguments
- MF
the molecular formula to search
- db
databases to search. Can be either
keggorpubchem.- organism
the KEGG organism ID to search. Ignored if argument
dbincludespubchem.- adduct_rules_table
a dataframe containing adduct formation rules. The defaults is
mzAnnotation::adduct_rules().- classyfireR_cache
file path for a
classyfireRcache. See the documentation ofclassyfireR::get_classificationfor more details.
Examples
construct('C4H6O5')
#> C4H6O5
#> Searching KEGG...
#> 8 hits returned
#> Retrieving classifications for 7 InChIKeys...
#> ✔ BJEPYKJPYRNKOW-REOHCLBHSA-N
#> ✔ BJEPYKJPYRNKOW-UWTATZPHSA-N
#> ✔ BJEPYKJPYRNKOW-UHFFFAOYSA-N
#> ✔ SCSGVVIUUUPOOJ-GSVOUGTGSA-N
#> ✔ SCSGVVIUUUPOOJ-VKHMYHEASA-N
#> ✔ CODPBKJMVNZFKR-REOHCLBHSA-N
#> ✔ CODPBKJMVNZFKR-UWTATZPHSA-N
#> 7 classifications returned
#> Consensus structural classifications
#>
#> MF: C4H6O5
#> Adducts: 58
#> Organism:
#> Database: kegg
#> Hits: 8
#> Classifications: 8
#> Average PIPs: 8
#>
#> kingdom: Organic compounds
#> └─superclass: Organic acids and derivatives