Match those fragments!
A peptide fragmentation matching library for rust.
use *;
use *;
// Parse a peptide
let peptide = pro_forma.unwrap;
// Get the theoretical fragmentation for EThcD
let fragments = peptide.generate_theoretical_fragments.unwrap;
// Load the raw file
let spectra = open.unwrap;
// Annotate the spectrum with this peptide
let matched = spectra.annotate;
Features
- Read pro forma sequences ('level 2-ProForma + mass spectrum compliant + glycans compliant', with the intention to fully support the whole spec)
- Generate theoretical fragments with control over the fragmentation model from any supported pro forma peptide
- Generate fragments from satellite ions (w, d, and v)
- Generate glycan fragments
- Generate theoretical fragments for modifications of unknown position
- Generate theoretical fragments for chimeric spectra
- Read mgf files
- Match spectra to the generated fragments
- Extensive use of
uomfor compile time unit checking - Align peptides based on mass (algorithm will be tweaked extensively over time) (see
Stitchfor more information, but the algorithm has been improved)