Devising human interpretable diagnostic glycan fragments from MS/MS-spectra.
Structural details of oligosaccharides, or glycans, often carry biological relevance, which is why they are typically elucidated using tandem mass spectrometry. Common approaches to distinguish isomers rely on diagnostic glycan fragments for annotating topologies or linkages. Diagnostic fragments are often only known informally among practitioners or stem from individual studies, with unclear validity or generalizability, causing annotation heterogeneity and hampering new analysts. Drawing on a curated set of 237,000 O-glycomics spectra, we here present a rule-based machine learning workflow to uncover quantifiably valid and generalizable diagnostic fragments. This results in fragmentation rules to robustly distinguish common O-glycan isomers. We envision this resource to improve glycan annotation accuracy and concomitantly make annotations more transparent and homogeneous across analysts.
Download the code from github via
git clone [email protected]:BojarLab/FragmentFactory.git
Then, setup an environment via
conda create -y -n ff python=3.9
conda activate ff
mamba install -c conda-forge -c bioconda -c kalininalab datasail-lite
pip install -r requirements.txt
Inside the FragmentFactory folder, one can run
python train.py <path/to/spectra_df.pkl> <output-prefix> --weighting --GPID_SIM <val>
to create custom trees and a rough visualization thereof.