Convenience wrapper that builds an index when one is not supplied. Reuse a pre-built index for repeated or large searches.
Usage
AnnotateMZ(
observed_mz,
db = NULL,
index = NULL,
polarity = NULL,
adducts = NULL,
rules = NULL,
maldi_matrix = NULL,
ppm = 5,
ms1_spectrum = NULL,
...
)Arguments
- observed_mz
Numeric vector of observed m/z values.
- db
Metabolite database used when
indexisNULL.- index
Optional pre-built
spamtp_mz_index.- polarity
Ion mode. When
NULL, infer it fromindexor the matrix profile, falling back to positive mode.- adducts
Optional adduct subset. When
NULL, retain the complete rule space selected by the matrix profile or polarity.- rules
Optional custom rule table.
- maldi_matrix
Optional MALDI matrix/reagent profile used to select rules automatically when
rulesisNULL.- ppm
Mass tolerance in ppm.
- ms1_spectrum
Optional contextual spectrum.
- ...
Additional arguments passed to
QueryMZAnnotationIndex().
