mass-spectrometry-fragmentation-modeling
Summary
Model MS/MS fragmentation patterns for biomolecules by selecting and configuring a fragmentor object that encodes molecule-specific cleavage rules, then integrating it into synthetic mzML generation to produce realistic tandem mass spectra. This skill enables creation of gold-standard LC-MS/MS datasets where fragmentation behavior is known and reproducible.
When to use
You are generating synthetic LC-MS/MS data for method validation, algorithm benchmarking, or co-fragmentation analysis, and need to model how specific biomolecules (peptides, nucleosides, or other chemical formulas) fragment under collision-induced dissociation. Use this skill when you require deterministic, repeatable MS/MS spectra with known fragmentation patterns to establish ground truth.
When NOT to use
- You are analyzing experimental (non-synthetic) LC-MS/MS data—use fragment annotation or database search instead.
- Your biomolecule type is not covered by SMITER's default models (peptides, nucleosides) and you lack the expertise or documentation to implement a custom fragmentor.
- You need real-time or probabilistic fragmentation (e.g., with inherent randomness per acquisition)—SMITER generates deterministic synthetic spectra.
Inputs
- Peak properties dictionary (mass, intensity, retention time for analytes)
- Fragmentor object (PeptideFragmentor, nucleoside fragmentor, or custom class)
- Noise injector (e.g., UniformNoiseInjector)
- General simulation parameters (gradient_length, instrument settings)
Outputs
- Synthetic mzML file with MS1 and MS2 spectra
- Fragment ion peak lists with m/z and intensity values
- Fragmentation pattern records for each parent ion
How to apply
Instantiate a fragmentor object appropriate to your biomolecule class—SMITER provides PeptideFragmentor for peptides and two nucleoside fragmentation models. The fragmentor encodes molecule-specific cleavage rules based on chemical structure. Pass the fragmentor to the write_mzml function along with peak-property definitions (mass, intensity, retention time), a noise model, and simulation parameters (gradient length, instrument configuration). The modular design allows custom fragmentor implementations if default models do not match your analyte chemistry. Verify that the resulting mzML file contains populated MS/MS spectra with fragment ion m/z and intensity values consistent with the chosen fragmentation model's rules.
Related tools
Examples
from smiter import synthetic_mzml, fragmentation_functions, noise_functions
fragmentor = fragmentation_functions.PeptideFragmentor()
noise_injector = noise_functions.UniformNoiseInjector()
synthetic_mzml.write_mzml(peak_properties=peak_dict, noise_injector=noise_injector, fragmentor=fragmentor, gradient_length=30, output_file='synthetic.mzML')
Evaluation signals
- Output mzML file is valid and readable by standard mass spectrometry tools (e.g., contains proper mzML schema structure).
- MS/MS spectra contain fragment ion peaks consistent with the fragmentor's cleavage rules (e.g., peptide b- and y-ions for PeptideFragmentor).
- Fragment m/z values match expected neutral losses and residue compositions for the input sequence/formula.
- Peak intensities scale smoothly across the gradient and respond predictably to the noise model.
- The fragmentation pattern is deterministic and reproducible across multiple runs with identical inputs.
Limitations
- SMITER's fragmentation models are currently limited to peptides and modified nucleosides; other biomolecule classes require custom fragmentor implementation.
- Fragmentation patterns are rule-based and deterministic; they do not capture stochastic aspects of real MS/MS such as variable branching or instrument-specific bias.
- Peak distributions use standard statistical shapes (Gaussian, gamma, exponentially-modified Gaussian) and may not replicate unusual empirical peak tailing or asymmetry.
- Retention time prediction requires external modules; SMITER itself does not include retention time models in the core library.
Evidence
- [other] SMITER's write_mzml function integrates peak-property definitions along with selectable noise and fragmentation models: "SMITER's write_mzml function executes the final simulation step by accepting peak-property definitions along with selectable noise and fragmentation models, which are integrated through a modular"
- [other] Instantiate a fragmentor object such as PeptideFragmentor to define fragmentation rules: "Instantiate a fragmentor object (e.g., fragmentation_functions.PeptideFragmentor or nucleoside fragmentation model) to define fragmentation rules."
- [readme] SMITER offers several methods for peptide fragmentation and two models for nucleoside fragmentation by default: "By default, SMITER uses an established noise model and offers several methods for peptide fragmentation or two models for nucleoside fragmentation."
- [readme] SMITER features a modular design allowing noise and fragmentation models to be easily implemented or adapted: "As SMITER features a modular design, noise and fragmentation models can easily be implemented or adapted."
- [readme] Gold-standard datasets enable evaluation of co-elution and co-fragmentation challenges before conducting actual MS experiments: "a comprehensive simulation can identify and thus prevent such difficulties before performing actual MS experiments. SMITER allows to create such datasets easily, fast and efficiently"
1---2name: mass-spectrometry-fragmentation-modeling3description: Use when you are generating synthetic LC-MS/MS data for method validation, algorithm benchmarking, or co-fragmentation analysis, and need to model how specific biomolecules (peptides, nucleosides, or other chemical formulas) fragment under collision-induced dissociation.4license: CC-BY-4.05---67# mass-spectrometry-fragmentation-modeling89## Summary1011Model MS/MS fragmentation patterns for biomolecules by selecting and configuring a fragmentor object that encodes molecule-specific cleavage rules, then integrating it into synthetic mzML generation to produce realistic tandem mass spectra. This skill enables creation of gold-standard LC-MS/MS datasets where fragmentation behavior is known and reproducible.1213## When to use1415You are generating synthetic LC-MS/MS data for method validation, algorithm benchmarking, or co-fragmentation analysis, and need to model how specific biomolecules (peptides, nucleosides, or other chemical formulas) fragment under collision-induced dissociation. Use this skill when you require deterministic, repeatable MS/MS spectra with known fragmentation patterns to establish ground truth.1617## When NOT to use1819- You are analyzing experimental (non-synthetic) LC-MS/MS data—use fragment annotation or database search instead.20- Your biomolecule type is not covered by SMITER's default models (peptides, nucleosides) and you lack the expertise or documentation to implement a custom fragmentor.21- You need real-time or probabilistic fragmentation (e.g., with inherent randomness per acquisition)—SMITER generates deterministic synthetic spectra.2223## Inputs2425- Peak properties dictionary (mass, intensity, retention time for analytes)26- Fragmentor object (PeptideFragmentor, nucleoside fragmentor, or custom class)27- Noise injector (e.g., UniformNoiseInjector)28- General simulation parameters (gradient_length, instrument settings)2930## Outputs3132- Synthetic mzML file with MS1 and MS2 spectra33- Fragment ion peak lists with m/z and intensity values34- Fragmentation pattern records for each parent ion3536## How to apply3738Instantiate a fragmentor object appropriate to your biomolecule class—SMITER provides PeptideFragmentor for peptides and two nucleoside fragmentation models. The fragmentor encodes molecule-specific cleavage rules based on chemical structure. Pass the fragmentor to the write_mzml function along with peak-property definitions (mass, intensity, retention time), a noise model, and simulation parameters (gradient length, instrument configuration). The modular design allows custom fragmentor implementations if default models do not match your analyte chemistry. Verify that the resulting mzML file contains populated MS/MS spectra with fragment ion m/z and intensity values consistent with the chosen fragmentation model's rules.3940## Related tools4142- **SMITER** (Synthetic mzML writer and modular fragmentation/noise integration engine) — https://github.com/LeidelLab/SMITER43- **pyQms** (Provides highly-accurate isotopic pattern calculations for realistic peak simulation) — https://github.com/pyQms/pyqms4445## Examples4647```48from smiter import synthetic_mzml, fragmentation_functions, noise_functions49fragmentor = fragmentation_functions.PeptideFragmentor()50noise_injector = noise_functions.UniformNoiseInjector()51synthetic_mzml.write_mzml(peak_properties=peak_dict, noise_injector=noise_injector, fragmentor=fragmentor, gradient_length=30, output_file='synthetic.mzML')52```5354## Evaluation signals5556- Output mzML file is valid and readable by standard mass spectrometry tools (e.g., contains proper mzML schema structure).57- MS/MS spectra contain fragment ion peaks consistent with the fragmentor's cleavage rules (e.g., peptide b- and y-ions for PeptideFragmentor).58- Fragment m/z values match expected neutral losses and residue compositions for the input sequence/formula.59- Peak intensities scale smoothly across the gradient and respond predictably to the noise model.60- The fragmentation pattern is deterministic and reproducible across multiple runs with identical inputs.6162## Limitations6364- SMITER's fragmentation models are currently limited to peptides and modified nucleosides; other biomolecule classes require custom fragmentor implementation.65- Fragmentation patterns are rule-based and deterministic; they do not capture stochastic aspects of real MS/MS such as variable branching or instrument-specific bias.66- Peak distributions use standard statistical shapes (Gaussian, gamma, exponentially-modified Gaussian) and may not replicate unusual empirical peak tailing or asymmetry.67- Retention time prediction requires external modules; SMITER itself does not include retention time models in the core library.6869## Evidence7071- [other] SMITER's write_mzml function integrates peak-property definitions along with selectable noise and fragmentation models: "SMITER's write_mzml function executes the final simulation step by accepting peak-property definitions along with selectable noise and fragmentation models, which are integrated through a modular"72- [other] Instantiate a fragmentor object such as PeptideFragmentor to define fragmentation rules: "Instantiate a fragmentor object (e.g., fragmentation_functions.PeptideFragmentor or nucleoside fragmentation model) to define fragmentation rules."73- [readme] SMITER offers several methods for peptide fragmentation and two models for nucleoside fragmentation by default: "By default, SMITER uses an established noise model and offers several methods for peptide fragmentation or two models for nucleoside fragmentation."74- [readme] SMITER features a modular design allowing noise and fragmentation models to be easily implemented or adapted: "As SMITER features a modular design, noise and fragmentation models can easily be implemented or adapted."75- [readme] Gold-standard datasets enable evaluation of co-elution and co-fragmentation challenges before conducting actual MS experiments: "a comprehensive simulation can identify and thus prevent such difficulties before performing actual MS experiments. SMITER allows to create such datasets easily, fast and efficiently"