
Predict a structure-aware adduct search space from SMILES
Source:R/MZAnnotationEngine.R
PredictAdductsFromSMILES.RdThis function applies the same functional-group and ion-mode logic used by
BuildMZAnnotationIndex() before any observed m/z is supplied. It is useful
for auditing which protonation, deprotonation, alkali-binding, or reactive
matrix hypotheses SpaMTP will retain for a structure.
Arguments
- smiles
Character vector of SMILES strings.
- polarity
"positive","negative", or"neutral". WhenNULL, use the matrix-profile default or positive mode.- maldi_matrix
Optional MALDI matrix/reagent profile.
- rules
Optional custom rule table. It cannot be combined with
maldi_matrix.- min_structure_score
Minimum rule-specific structural prior marked as retained.
- backend, workers
Passed to
DeconvolveSMILES().