IUPAC Three Letter Code

glypy.io.iupac.to_iupac(structure)[source]

Translate structure into its textual representation using IUPAC Three Letter Code

Parameters:

structure : Glycan or Monosaccharide

The structure to be translated

Returns:

str

glypy.io.iupac.from_iupac(text, **kwargs)[source]

Parse the given text into an instance of Glycan. If there is only a single monosaccharide in the output, just the Monosaccharide instance is returned.

Parameters:

text : str

Returns:

Glycan or Monosaccharide

If the resulting structure is just a single monosaccharide, the returned value is a Monosaccharide.