Skip to content

Commit

Permalink
Add some comments on glycan code
Browse files Browse the repository at this point in the history
  • Loading branch information
douweschulte committed Nov 14, 2023
1 parent 9928fdb commit b11d8fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/glycan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@ pub enum GlycanSubstituent {
Water,
}

// TODO: Points from mobiusklein in rusteomics/mzcore/pull/2
// * Remove the numbers from the names where already covered by the parsing code
// * Add an additional level which defines the leaving group, to make the chemical formula difference easier
const POSTFIX_SUBSTITUENTS: &[(&str, GlycanSubstituent)] = &[
("Ac", GlycanSubstituent::Acetyl),
("Ala2Ac", GlycanSubstituent::AcetylAlanyl),
Expand All @@ -801,7 +804,7 @@ const POSTFIX_SUBSTITUENTS: &[(&str, GlycanSubstituent)] = &[
("Fo", GlycanSubstituent::Formyl),
("Gc", GlycanSubstituent::Glycolyl),
("Gln2Ac", GlycanSubstituent::AcetylGlutaminyl),
("5Glu2Me", GlycanSubstituent::MethylGlutamyl), // TODO: Does this number has to be there? (Not found in the glycosmos data)
("5Glu2Me", GlycanSubstituent::MethylGlutamyl),
("Gly", GlycanSubstituent::Glycyl),
("Gr", GlycanSubstituent::Glyceryl),
("Gr2,3Me2", GlycanSubstituent::DiMethylGlyceryl),
Expand Down

0 comments on commit b11d8fa

Please sign in to comment.