| auto_parse | R Documentation |
Detect the structure string type and use the appropriate parser to parse automatically. Mixed types are supported.
Supported types:
GlycoCT
IUPAC-condensed
IUPAC-extended
IUPAC-short
GlyCAM IUPAC
IUPAC-compact
WURCS
Linear Code
pGlyco
StrucGP
KCF
LINUCS
GlycoWorkbench
auto_parse(x, on_failure = "error", progress = FALSE)
x |
A character vector of structure 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. |
A glyrepr::glycan_structure() object.
# Single structure
x <- "Gal(b1-3)GlcNAc(b1-4)Glc(a1-" # IUPAC-condensed
auto_parse(x)
# Mixed types
x <- c(
"Gal(b1-3)GlcNAc(b1-4)Glc(a1-", # IUPAC-condensed
"Neu5Aca3Gala3(Fuca6)GlcNAcb-" # IUPAC-short
)
auto_parse(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.