Composition Transformation¶
Derivatize and digest saccharides
- glypy.composition.composition_transform.derivatize(saccharide, substituent)[source]¶
For each monosaccharide and viable substituent, attach the specified substituent.
Warning
This function mutates the input
saccharide
object, because copying objects is expensive. If you want to continue using the underivatized object, create a copy of it using the object’sclone
method.When called on an instance of
SaccharideCollection
, such asGlycan
orGlycanComposition
, that type’s_derivatized
method will be called for any special book-keeping that must be done. This is a NoOp forGlycan
See also
strip_derivitization()
- glypy.composition.composition_transform.strip_derivatization(saccharide)[source]¶
For each monosaccharide and viable substituent, remove all substituents added by
derivatize()
.Warning
This function, like
derivatize()
, will mutate the inputsaccharide
.When called on an instance of
SaccharideCollection
, such asGlycan
orGlycanComposition
, that type’s_strip_derivatization
method will be called for any special book-keeping that must be done. This is a NoOp forGlycan
See also