adduct-type-assignment-positive-mode
Summary
Enumerate and rank multiple positive-mode adduct types ([M+H]+, [M+Na]+, [M+K]+, etc.) for unknown MS/MS precursor masses using a formula transformer neural network that scores consistency between candidate adduct–formula pairs and observed tandem mass spectra without referencing spectral databases.
When to use
You have an unknown MS/MS spectrum with a measured precursor m/z and want to determine which positive-mode adduct type ([M+H]+, [M+Na]+, [M+K]+, etc.) is most likely responsible for ionization. This is essential when the precursor mass alone is ambiguous—multiple adduct types can produce the same observed m/z for different neutral masses—and you cannot rely on spectral database matching.
When NOT to use
- Input spectra are from negative-mode ionization (MIST-CF currently supports positive mode only; see readme: 'Considering multiple adduct types beyond [M+H]+ (still only positive mode)').
- The neutral mass is already known or the precursor mass is unambiguous (adduct assignment becomes trivial).
- You have high-confidence spectral database matches available; database-driven approaches may be faster and equally reliable for well-characterized compounds.
Inputs
- Mass spectrum in MGF format or m/z–intensity pairs (MS/MS precursor m/z and fragment m/z values with intensities)
- Observed precursor m/z value (in Da)
- Mass tolerance threshold for formula enumeration (e.g., 5 ppm)
Outputs
- Ranked list of candidate adduct–formula pairs with energy-based scores
- Top-ranked adduct assignment ([M+H]+, [M+Na]+, [M+K]+, etc.)
- Inferred neutral mass corresponding to assigned adduct and formula
- Score per candidate pair (higher indicates better agreement with observed spectrum)
How to apply
First, enumerate candidate chemical formulas for the observed precursor m/z using SIRIUS decomp, which applies a dynamic programming algorithm to generate all chemically feasible formulas within the mass tolerance. For each enumerated formula, generate candidate adduct–formula pairs spanning multiple positive-mode adduct types beyond [M+H]+ (e.g., [M+Na]+, [M+K]+, [M+NH4]+). Feed each pair into the MIST-CF formula transformer neural network, which embeds the precursor formula, fragment formulas (and their neutral losses), and adduct type as covariates, then computes an energy-based score reflecting agreement between the candidate pair and the observed MS/MS peaks. Rank candidates by descending score; the top-ranked pair indicates both the inferred neutral mass (via formula and adduct) and the most probable ionization mode. The model learns rankings in a data-dependent fashion on MS/MS training sets rather than computing fragmentation trees, allowing it to capture instrument-specific and adduct-specific fragmentation patterns.
Related tools
- MIST-CF (Formula transformer neural network that scores candidate adduct–formula pairs against observed MS/MS spectra and ranks them by energy-based agreement) — https://github.com/samgoldman97/mist-cf
- SIRIUS (Provides the dynamic programming algorithm (SIRIUS decomp) to enumerate all chemically feasible candidate formulas for a given precursor m/z)
Examples
. quickstart/download_model.sh && . quickstart/run_model.sh
Evaluation signals
- Top-ranked adduct–formula pair correctly recovers the ground-truth neutral mass (or within experimental mass error) when evaluated on a held-out test set.
- Rank-1 accuracy (fraction of spectra where true adduct is ranked first) is significantly higher than random baseline and comparable to or better than SIRIUS fragmentation-tree approach.
- Score distribution is well-separated between correct and incorrect adduct assignments (higher scores for true adduct, lower for plausible decoys).
- Model performance is consistent across instrument types (e.g., Orbitrap, Q-TOF) when model is trained on mixed instrument data.
- Few MS/MS peaks (e.g., as few as 5–10 fragments) are sufficient to discriminate adducts; performance does not collapse with sparse spectra.
Limitations
- Negative-mode ionization is not supported; method is restricted to positive-mode adducts only.
- Model performance may degrade on proprietary high-resolution data (e.g., Orbitrap) if trained primarily on lower-resolution spectra; model trained on NIST20 library is recommended but requires commercial license.
- Adduct ranking relies on learned patterns from training data; rare or unconventional adducts absent from training will not be ranked accurately.
- Method assumes chemically valid formulas exist in the enumeration step; SIRIUS decomp may fail or be slow for very high m/z or unusual elemental compositions.
- No direct support for multiply charged ions or negative-mode adducts ([M−H]−, [M+Cl]−, etc.).
Evidence
- [readme] MIST-CF ranks chemical formula and adduct assignments for an unknown mass spectrum using an end-to-end energy based modeling approach, without referencing any spectrum databases.: "MIST-CF ranks chemical formula and adduct assignments for an unknown mass spectrum using an end-to-end energy based modeling approach, without referencing any spectrum databases."
- [readme] Instead of computing fragmentation trees, MIST-CF adopts a formula transformer neural network architecture and learns in a data dependent fashion.: "Instead of computing fragmentation trees, MIST-CF adopts a formula transformer neural network architecture and learns in a data dependent fashion."
- [readme] Considering multiple adduct types beyond [M+H]+ (still only positive mode): "Considering multiple adduct types beyond [M+H]+ (still only positive mode)"
- [readme] Utilizing an internal chemical subformula assignment protocol (rather than SIRIUS fragmentation trees): "Utilizing an internal chemical subformula assignment protocol (rather than SIRIUS fragmentation trees)"
- [readme] Embedding instrument type used to measure the MS/MS as an additional model 'covariate' to help make predictions: "Embedding instrument type used to measure the MS/MS as an additional model "covariate" to help make predictions"
1---2name: adduct-type-assignment-positive-mode3description: Use when you have an unknown MS/MS spectrum with a measured precursor m/z and want to determine which positive-mode adduct type ([M+H]+, [M+Na]+, [M+K]+, etc.) is most likely responsible for ionization.4license: CC-BY-4.05---67# adduct-type-assignment-positive-mode89## Summary1011Enumerate and rank multiple positive-mode adduct types ([M+H]+, [M+Na]+, [M+K]+, etc.) for unknown MS/MS precursor masses using a formula transformer neural network that scores consistency between candidate adduct–formula pairs and observed tandem mass spectra without referencing spectral databases.1213## When to use1415You have an unknown MS/MS spectrum with a measured precursor m/z and want to determine which positive-mode adduct type ([M+H]+, [M+Na]+, [M+K]+, etc.) is most likely responsible for ionization. This is essential when the precursor mass alone is ambiguous—multiple adduct types can produce the same observed m/z for different neutral masses—and you cannot rely on spectral database matching.1617## When NOT to use1819- Input spectra are from negative-mode ionization (MIST-CF currently supports positive mode only; see readme: 'Considering multiple adduct types beyond [M+H]+ (still only positive mode)').20- The neutral mass is already known or the precursor mass is unambiguous (adduct assignment becomes trivial).21- You have high-confidence spectral database matches available; database-driven approaches may be faster and equally reliable for well-characterized compounds.2223## Inputs2425- Mass spectrum in MGF format or m/z–intensity pairs (MS/MS precursor m/z and fragment m/z values with intensities)26- Observed precursor m/z value (in Da)27- Mass tolerance threshold for formula enumeration (e.g., 5 ppm)2829## Outputs3031- Ranked list of candidate adduct–formula pairs with energy-based scores32- Top-ranked adduct assignment ([M+H]+, [M+Na]+, [M+K]+, etc.)33- Inferred neutral mass corresponding to assigned adduct and formula34- Score per candidate pair (higher indicates better agreement with observed spectrum)3536## How to apply3738First, enumerate candidate chemical formulas for the observed precursor m/z using SIRIUS decomp, which applies a dynamic programming algorithm to generate all chemically feasible formulas within the mass tolerance. For each enumerated formula, generate candidate adduct–formula pairs spanning multiple positive-mode adduct types beyond [M+H]+ (e.g., [M+Na]+, [M+K]+, [M+NH4]+). Feed each pair into the MIST-CF formula transformer neural network, which embeds the precursor formula, fragment formulas (and their neutral losses), and adduct type as covariates, then computes an energy-based score reflecting agreement between the candidate pair and the observed MS/MS peaks. Rank candidates by descending score; the top-ranked pair indicates both the inferred neutral mass (via formula and adduct) and the most probable ionization mode. The model learns rankings in a data-dependent fashion on MS/MS training sets rather than computing fragmentation trees, allowing it to capture instrument-specific and adduct-specific fragmentation patterns.3940## Related tools4142- **MIST-CF** (Formula transformer neural network that scores candidate adduct–formula pairs against observed MS/MS spectra and ranks them by energy-based agreement) — https://github.com/samgoldman97/mist-cf43- **SIRIUS** (Provides the dynamic programming algorithm (SIRIUS decomp) to enumerate all chemically feasible candidate formulas for a given precursor m/z)4445## Examples4647```48. quickstart/download_model.sh && . quickstart/run_model.sh49```5051## Evaluation signals5253- Top-ranked adduct–formula pair correctly recovers the ground-truth neutral mass (or within experimental mass error) when evaluated on a held-out test set.54- Rank-1 accuracy (fraction of spectra where true adduct is ranked first) is significantly higher than random baseline and comparable to or better than SIRIUS fragmentation-tree approach.55- Score distribution is well-separated between correct and incorrect adduct assignments (higher scores for true adduct, lower for plausible decoys).56- Model performance is consistent across instrument types (e.g., Orbitrap, Q-TOF) when model is trained on mixed instrument data.57- Few MS/MS peaks (e.g., as few as 5–10 fragments) are sufficient to discriminate adducts; performance does not collapse with sparse spectra.5859## Limitations6061- Negative-mode ionization is not supported; method is restricted to positive-mode adducts only.62- Model performance may degrade on proprietary high-resolution data (e.g., Orbitrap) if trained primarily on lower-resolution spectra; model trained on NIST20 library is recommended but requires commercial license.63- Adduct ranking relies on learned patterns from training data; rare or unconventional adducts absent from training will not be ranked accurately.64- Method assumes chemically valid formulas exist in the enumeration step; SIRIUS decomp may fail or be slow for very high m/z or unusual elemental compositions.65- No direct support for multiply charged ions or negative-mode adducts ([M−H]−, [M+Cl]−, etc.).6667## Evidence6869- [readme] MIST-CF ranks chemical formula and adduct assignments for an unknown mass spectrum using an end-to-end energy based modeling approach, without referencing any spectrum databases.: "MIST-CF ranks chemical formula and adduct assignments for an unknown mass spectrum using an end-to-end energy based modeling approach, without referencing any spectrum databases."70- [readme] Instead of computing fragmentation trees, MIST-CF adopts a formula transformer neural network architecture and learns in a data dependent fashion.: "Instead of computing fragmentation trees, MIST-CF adopts a formula transformer neural network architecture and learns in a data dependent fashion."71- [readme] Considering multiple adduct types beyond [M+H]+ (still only positive mode): "Considering multiple adduct types beyond [M+H]+ (still only positive mode)"72- [readme] Utilizing an internal chemical subformula assignment protocol (rather than SIRIUS fragmentation trees): "Utilizing an internal chemical subformula assignment protocol (rather than SIRIUS fragmentation trees)"73- [readme] Embedding instrument type used to measure the MS/MS as an additional model 'covariate' to help make predictions: "Embedding instrument type used to measure the MS/MS as an additional model "covariate" to help make predictions"