View source: R/parse-iupac-compact.R
| parse_iupac_compact | R Documentation |
Parse IUPAC-compact strings into a glyrepr::glycan_structure().
parse_iupac_compact(x, on_failure = "error", progress = FALSE)
x |
A character vector of IUPAC-compact 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. |
IUPAC-compact notation is similar to IUPAC-condensed notation, but linkages
are written directly after the monosaccharide, such as "Galb1-3GlcNAc",
and branches are written in parentheses. The parser normalizes compact
notation into IUPAC-condensed notation, then uses the IUPAC-condensed parser
to construct the glycan structure.
Alditol glycans marked with +aldi retain their alditol status and use an
unknown reducing-end anomer configuration.
A glyrepr::glycan_structure() object.
parse_iupac_condensed()
iupac <- "Mana1-3(Mana1-6)Manb1-4GlcNAcb"
parse_iupac_compact(iupac)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.