| parse_linucs | R Documentation |
Parse LINUCS strings into a glyrepr::glycan_structure().
LINUCS is a tree-oriented glycan format that writes each residue as a
linkage token, a residue token, and a braced child list, for example
"[][Hexp]{[(4+1)][Hexp]{}}".
parse_linucs(
x,
on_failure = "error",
progress = FALSE,
validate = lifecycle::deprecated()
)
x |
A character vector of LINUCS 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. |
validate |
Deprecated and ignored. Array records
are always validated by |
LINUCS linkages are written as "(parent+child)", where parent is the
linkage position on the parent residue and child is the anomeric linkage
position on the child residue. Residue labels are normalized to the
monosaccharide and substituent vocabulary used by glyrepr::glyrepr.
A -ol suffix on the root residue is retained as alditol status.
A glyrepr::glycan_structure() object.
linucs <- "[][b-D-Glcp]{[(4+1)][b-D-Galp]{}}"
parse_linucs(linucs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.