residue-position-mapping-to-spectrum-peaks
Summary
Maps observed MS2 fragment ion peaks to specific amino acid positions in a peptide sequence by matching experimental m/z and intensity data against theoretical B and Y ion series calculated at specified isotope enrichment levels. This skill enables direct interpretation of which regions of a peptide contribute to observed spectral fragments.
When to use
When you have an MS2 spectrum (FT2 scan or mzML) with observed peak data (m/z, intensity, charge states), a peptide sequence, and need to annotate which amino acid residues generated each matched fragment ion—particularly in stable isotope labeling experiments where isotopic mass shifts must be accounted for (e.g., 1.07% natural 13C abundance or higher SIP enrichment).
When NOT to use
- Input spectrum is MS1 (precursor-level only); annotatePSM requires MS2 fragmentation data.
- Peptide sequence is unknown or ambiguous; residue position mapping requires an unambiguous sequence reference.
- Fragment ions are from non-standard cleavage (e.g., missed cleavage, complex fragmentation patterns); B/Y ion theory assumes standard tryptic or protease-specific cleavage.
Inputs
- MS2 spectrum scan (FT2, mzML, or MGF format)
- Observed peak list with m/z, intensity, and charge state
- Peptide sequence (string)
- Fragment charge states (integer range, e.g., 1:2)
- Isotope type and probability (e.g., C13, 0.0107 for natural abundance)
- Precursor m/z value
- Isolation window width (Da, e.g., 4.0)
Outputs
- ExpectedBYions table with theoretical B and Y ions
- Matched fragment annotations with matchedIndices
- Residue positions (amino acid indices) for each matched fragment
- Tabular export of matched-ion subset with residue assignments
How to apply
Load the experimental MS2 scan using Aerith's file parsing interface (supporting FT2, mzML, or MGF formats). Define the peptide sequence, fragment charge states (typically 1–2 for B/Y ions), isotope type (e.g., C13), and isotope probability (0.0107 for natural abundance, or higher for SIP). Calculate theoretical B and Y ion isotopic envelopes using sequential convolution algorithm accounting for the isotopic distribution. Run annotatePSM with the observed peak data and theoretical ion table, specifying the precursor m/z and isolation window width (e.g., 4.0 Da). Extract the returned matchedIndices and residuePositions: matched fragments will have non-negative indices indicating which amino acid position(s) contributed to each observed peak. Validate by confirming that all matched peaks fall within the isolation window and that residue positions span the full peptide length.
Related tools
- Aerith (Primary R package for parsing MS scans, calculating theoretical isotopic envelopes, and executing annotatePSM fragment ion matching and visualization.) — https://github.com/xyz1396/Aerith
- Raxport (Extracts MS2 scans from Thermo RAW files and exports to FT2 format for input to Aerith file parsing interface.) — https://github.com/xyz1396/Raxport.net
- mzR (Bioconductor package integrated into Aerith for direct parsing of mzML and MGF spectral files.)
- R (Runtime environment for executing Aerith package and annotatePSM function calls.)
Examples
# R: Load Aerith, parse FT2 scan, calculate theoretical B/Y ions, and annotate PSM
library(Aerith)
scan_data <- read_scan('path/to/scan_107728.FT2')
theoretical_ions <- calculateBYions(peptide='HSQVFSTAEDNQSAVTIHVLQGER', charge_states=1:2, isotope='C13', enrichment=0.0107)
matched <- annotatePSM(observed_peaks=scan_data, theoretical_ions=theoretical_ions, precursor_mz=1234.56, isolation_width=4.0)
results <- extract_matched_residue_positions(matched)
Evaluation signals
- All matched fragment peaks have non-negative matchedIndices (i.e., no unmatched fragments are assigned positions).
- Residue positions are contiguous integers spanning from position 1 to peptide length, with no gaps or out-of-range values.
- Observed m/z values of matched peaks fall within the theoretical m/z range ± 0.01 Da (or instrument mass accuracy tolerance) of the expected B/Y ions.
- Matched peaks respect the isolation window constraint: all matched m/z values lie within [precursor_mz ± isolation_window/2].
- For SIP experiments, matched peaks show expected isotopic mass shifts (e.g., +1.003 Da per 13C atom) consistent with the specified enrichment probability.
Limitations
- annotatePSM assumes standard B and Y ion fragmentation; non-canonical fragmentation patterns (e.g., internal fragments, complex rearrangements) will not be mapped correctly.
- Isotope envelope calculation is approximate for very high enrichment (e.g., >90% 13C) due to Monte Carlo simulation limitations; natural abundance (1.07%) and moderate SIP labels (5–50%) are most reliable.
- Match quality depends on spectral peak picking; noisy or baseline-heavy scans may yield spurious or incomplete residue mappings.
- Precursor m/z and isolation window must be specified accurately; off-target values will exclude valid fragments or include noise peaks outside the true precursor population.
Evidence
- [other] annotatePSM accepts observed peak data (m/z, intensity, charge), peptide sequence, fragment charge states (1:2), isotope type (C13), isotope probability (0.0107 for natural abundance), precursor m/z, and isolation window width (4.0 Da), returning an ExpectedBYions table where matched fragments have non-negative matchedIndices and residuePositions: "annotatePSM accepts observed peak data (m/z, intensity, charge), peptide sequence, fragment charge states (1:2), isotope type (C13), isotope probability (0.0107 for natural abundance), precursor m/z,"
- [other] Calculate theoretical B and Y ion isotopic envelopes for the peptide at 1.07% 13C enrichment using sequential convolution algorithm for peptide fragments.: "Calculate theoretical B and Y ion isotopic envelopes for the peptide at 1.07% 13C enrichment using sequential convolution algorithm for peptide fragments"
- [abstract] Aerith employs efficient algorithms including sequential convolution for peptide fragments, Monte Carlo simulation for fine isotopic structures, and FFT-based methods for metabolites to accurately generate isotopic distributions.: "employs efficient algorithms—including sequential convolution for peptide fragments, Monte Carlo simulation for fine isotopic structures, and FFT-based methods for metabolites—to accurately generate"
- [readme] Aerith is an R package that provides interfaces to read and write mass spectrum scans, calculate the theoretical isotopic peak envelope of peptide precursors and their B Y ions, score and visualize the PSM (peptide and spectra match): "Aerith is an R package that provides interfaces to read and write mass spectrum scans, calculate the theoretical isotopic peak envelope of peptide precursors and their B Y ions, score and visualize"
- [intro] Aerith accepts spectral data files in multiple formats, including Raxport-processed FT2, mzML, and MGF files, as well as pepXML and PIN files (Percolator outputs), and TSV files from the Sipros: "Aerith accepts spectral data files in multiple formats, including Raxport-processed FT2, mzML, and MGF files, as well as pepXML and PIN files"
1---2name: residue-position-mapping-to-spectrum-peaks3description: Use when when you have an MS2 spectrum (FT2 scan or mzML) with observed peak data (m/z, intensity, charge states), a peptide sequence, and need to annotate which amino acid residues generated each matched fragment ion—particularly in stable isotope labeling experiments where isotopic mass shifts.4license: CC-BY-4.05---67# residue-position-mapping-to-spectrum-peaks89## Summary1011Maps observed MS2 fragment ion peaks to specific amino acid positions in a peptide sequence by matching experimental m/z and intensity data against theoretical B and Y ion series calculated at specified isotope enrichment levels. This skill enables direct interpretation of which regions of a peptide contribute to observed spectral fragments.1213## When to use1415When you have an MS2 spectrum (FT2 scan or mzML) with observed peak data (m/z, intensity, charge states), a peptide sequence, and need to annotate which amino acid residues generated each matched fragment ion—particularly in stable isotope labeling experiments where isotopic mass shifts must be accounted for (e.g., 1.07% natural 13C abundance or higher SIP enrichment).1617## When NOT to use1819- Input spectrum is MS1 (precursor-level only); annotatePSM requires MS2 fragmentation data.20- Peptide sequence is unknown or ambiguous; residue position mapping requires an unambiguous sequence reference.21- Fragment ions are from non-standard cleavage (e.g., missed cleavage, complex fragmentation patterns); B/Y ion theory assumes standard tryptic or protease-specific cleavage.2223## Inputs2425- MS2 spectrum scan (FT2, mzML, or MGF format)26- Observed peak list with m/z, intensity, and charge state27- Peptide sequence (string)28- Fragment charge states (integer range, e.g., 1:2)29- Isotope type and probability (e.g., C13, 0.0107 for natural abundance)30- Precursor m/z value31- Isolation window width (Da, e.g., 4.0)3233## Outputs3435- ExpectedBYions table with theoretical B and Y ions36- Matched fragment annotations with matchedIndices37- Residue positions (amino acid indices) for each matched fragment38- Tabular export of matched-ion subset with residue assignments3940## How to apply4142Load the experimental MS2 scan using Aerith's file parsing interface (supporting FT2, mzML, or MGF formats). Define the peptide sequence, fragment charge states (typically 1–2 for B/Y ions), isotope type (e.g., C13), and isotope probability (0.0107 for natural abundance, or higher for SIP). Calculate theoretical B and Y ion isotopic envelopes using sequential convolution algorithm accounting for the isotopic distribution. Run annotatePSM with the observed peak data and theoretical ion table, specifying the precursor m/z and isolation window width (e.g., 4.0 Da). Extract the returned matchedIndices and residuePositions: matched fragments will have non-negative indices indicating which amino acid position(s) contributed to each observed peak. Validate by confirming that all matched peaks fall within the isolation window and that residue positions span the full peptide length.4344## Related tools4546- **Aerith** (Primary R package for parsing MS scans, calculating theoretical isotopic envelopes, and executing annotatePSM fragment ion matching and visualization.) — https://github.com/xyz1396/Aerith47- **Raxport** (Extracts MS2 scans from Thermo RAW files and exports to FT2 format for input to Aerith file parsing interface.) — https://github.com/xyz1396/Raxport.net48- **mzR** (Bioconductor package integrated into Aerith for direct parsing of mzML and MGF spectral files.)49- **R** (Runtime environment for executing Aerith package and annotatePSM function calls.)5051## Examples5253```54# R: Load Aerith, parse FT2 scan, calculate theoretical B/Y ions, and annotate PSM55library(Aerith)56scan_data <- read_scan('path/to/scan_107728.FT2')57theoretical_ions <- calculateBYions(peptide='HSQVFSTAEDNQSAVTIHVLQGER', charge_states=1:2, isotope='C13', enrichment=0.0107)58matched <- annotatePSM(observed_peaks=scan_data, theoretical_ions=theoretical_ions, precursor_mz=1234.56, isolation_width=4.0)59results <- extract_matched_residue_positions(matched)60```6162## Evaluation signals6364- All matched fragment peaks have non-negative matchedIndices (i.e., no unmatched fragments are assigned positions).65- Residue positions are contiguous integers spanning from position 1 to peptide length, with no gaps or out-of-range values.66- Observed m/z values of matched peaks fall within the theoretical m/z range ± 0.01 Da (or instrument mass accuracy tolerance) of the expected B/Y ions.67- Matched peaks respect the isolation window constraint: all matched m/z values lie within [precursor_mz ± isolation_window/2].68- For SIP experiments, matched peaks show expected isotopic mass shifts (e.g., +1.003 Da per 13C atom) consistent with the specified enrichment probability.6970## Limitations7172- annotatePSM assumes standard B and Y ion fragmentation; non-canonical fragmentation patterns (e.g., internal fragments, complex rearrangements) will not be mapped correctly.73- Isotope envelope calculation is approximate for very high enrichment (e.g., >90% 13C) due to Monte Carlo simulation limitations; natural abundance (1.07%) and moderate SIP labels (5–50%) are most reliable.74- Match quality depends on spectral peak picking; noisy or baseline-heavy scans may yield spurious or incomplete residue mappings.75- Precursor m/z and isolation window must be specified accurately; off-target values will exclude valid fragments or include noise peaks outside the true precursor population.7677## Evidence7879- [other] annotatePSM accepts observed peak data (m/z, intensity, charge), peptide sequence, fragment charge states (1:2), isotope type (C13), isotope probability (0.0107 for natural abundance), precursor m/z, and isolation window width (4.0 Da), returning an ExpectedBYions table where matched fragments have non-negative matchedIndices and residuePositions: "annotatePSM accepts observed peak data (m/z, intensity, charge), peptide sequence, fragment charge states (1:2), isotope type (C13), isotope probability (0.0107 for natural abundance), precursor m/z,"80- [other] Calculate theoretical B and Y ion isotopic envelopes for the peptide at 1.07% 13C enrichment using sequential convolution algorithm for peptide fragments.: "Calculate theoretical B and Y ion isotopic envelopes for the peptide at 1.07% 13C enrichment using sequential convolution algorithm for peptide fragments"81- [abstract] Aerith employs efficient algorithms including sequential convolution for peptide fragments, Monte Carlo simulation for fine isotopic structures, and FFT-based methods for metabolites to accurately generate isotopic distributions.: "employs efficient algorithms—including sequential convolution for peptide fragments, Monte Carlo simulation for fine isotopic structures, and FFT-based methods for metabolites—to accurately generate"82- [readme] Aerith is an R package that provides interfaces to read and write mass spectrum scans, calculate the theoretical isotopic peak envelope of peptide precursors and their B Y ions, score and visualize the PSM (peptide and spectra match): "Aerith is an R package that provides interfaces to read and write mass spectrum scans, calculate the theoretical isotopic peak envelope of peptide precursors and their B Y ions, score and visualize"83- [intro] Aerith accepts spectral data files in multiple formats, including Raxport-processed FT2, mzML, and MGF files, as well as pepXML and PIN files (Percolator outputs), and TSV files from the Sipros: "Aerith accepts spectral data files in multiple formats, including Raxport-processed FT2, mzML, and MGF files, as well as pepXML and PIN files"