
Draw a Symbol Nomenclature For Glycan (SNFG)
draw_cartoon.RdDraw a Symbol Nomenclature For Glycan (SNFG)
Usage
draw_cartoon(
structure,
show_linkage = TRUE,
orient = c("H", "V"),
highlight = NULL
)Arguments
- structure
A
glyrepr::glycan_structure()scalar, or a string of any glycan structure text nomenclatures supported byglyparse::auto_parse().- show_linkage
Show linkage annotation or not. Default is TRUE.
- orient
The orientation of glycan structure. "H" for horizontal, "V" for vertical. Default is "H"
- highlight
An integer vector specifying the node indices to highlight. This argument is applicable only when
structureis aglyrepr::glycan_structure(). Note that for aglyrepr::glycan_structure(), the node indices correspond exactly to the monosaccharides in its printed IUPAC nomenclature. For example, givenglyrepr::as_glycan_structure("Gal(b1-3)[GlcNAc(b1-6)]GalNAc(a1-"), settinghighlight = c(1, 3)will highlight the "Gal" and "GalNAc" nodes.