
Parse StrucGP Structures
parse_strucgp_struc.Rd
Parse StrucGP-style structure characters into glycan graphs. See example below for the structure format.
Value
A glycan graph if x
is a single character,
or a list of glycan graphs if x
is a character vector.
Examples
glycan <- parse_strucgp_struc("A2B2C1D1E2F1fedD1E2edcbB5ba")
print(glycan, verbose = TRUE)
#> <glycan_structure[1]>
#> [1] Hex(??-?)HexNAc(??-?)Hex(??-?)[HexNAc(??-?)Hex(??-?)]Hex(??-?)HexNAc(??-?)[dHex(??-?)]HexNAc(??-
#> # Unique structures: 1