
Decompose explicit functional groups in SMILES strings
Source:R/SMILESStructure.R
DeconvolveSMILES.RdA lightweight, dependency-free SMILES graph parser identifies common metabolite functional groups and derives interpretable positive-ion, negative-ion, alkali-binding, and neutral-mass priors. The parser is intended for candidate prioritisation rather than pKa, proton-affinity, or quantum chemistry calculations. Stereochemistry is accepted but does not change the counts.
Arguments
- smiles
Character vector of SMILES strings.
- backend
Currently
"auto"and"native"both use SpaMTP's native parser. The argument reserves a stable extension point for optional chemistry toolkits.- strict
Stop when any SMILES cannot be parsed. When
FALSE, invalid rows are returned withstructure_valid = FALSEand missing features.- workers
Number of forked workers used for unique SMILES on platforms supporting
parallel::mclapply(). The default is controlled byoptions(SpaMTP.smiles_workers = 1).