View source: R/parse-glycam-iupac.R
| parse_glycam_iupac | R Documentation |
Parse GlyCAM IUPAC-style structure strings into a
glyrepr::glycan_structure().
parse_glycam_iupac(x, on_failure = "error", progress = FALSE)
x |
A character vector of GlyCAM IUPAC strings. NA values are allowed and will be returned as NA structures. |
on_failure |
How to handle parsing failures. |
progress |
Whether to show a progress bar while parsing. |
GlyCAM IUPAC is similar to IUPAC-condensed notation, but monosaccharides
include configuration and ring markers such as "DGlcp" and "LFucp",
terminal reducing-end residues end in "-OH", and residue modifiers are
written in brackets, such as "DGalp[6S]b1-4".
The parser normalizes GlyCAM IUPAC into IUPAC-condensed notation, then uses
the IUPAC-condensed parser to construct the glycan structure. Explicit
reducing-end moieties, such as "-OH" or "-OME", are normalized to the
regular reducing-end IUPAC-condensed form because glyrepr does not represent
the terminal moiety separately.
A glyrepr::glycan_structure() object.
parse_iupac_condensed()
glycam <- "DManpa1-3[DManpa1-6]DManpb1-4DGlcpNAcb1-OH"
parse_glycam_iupac(glycam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.