powered by
This function parses GlycoCT strings into a glyrepr::glycan_structure(). GlycoCT is a format used by databases like GlyTouCan and GlyGen.
glyrepr::glycan_structure()
parse_glycoct(x)
A glyrepr::glycan_structure() object.
A character vector of GlycoCT strings. NA values are allowed and will be returned as NA structures.
GlycoCT format consists of two parts:
RES: Contains monosaccharides (lines starting with 'b:') and substituents (lines starting with 's:')
LIN: Contains linkage information between residues
For more information about GlycoCT format, see the glycoct.md documentation.
glycoct <- paste0( "RES\n", "1b:a-dgal-HEX-1:5\n", "2s:n-acetyl\n", "3b:b-dgal-HEX-1:5\n", "LIN\n", "1:1d(2+1)2n\n", "2:1o(3+1)3d" ) parse_glycoct(glycoct)
Run the code above in your browser using DataLab