Skip to contents

Parse pGlyco-style structure characters into glycan graphs. See example below for the structure format.

Usage

parse_pglyco_struc(x)

Arguments

x

A character vector of pGlyco-style structure strings.

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_pglyco_struc("(N(F)(N(H(H(N))(H(N(H))))))")
print(glycan, verbose = TRUE)
#> <glycan_structure[1]>
#> [1] Hex(??-?)HexNAc(??-?)Hex(??-?)[HexNAc(??-?)Hex(??-?)]Hex(??-?)HexNAc(??-?)[dHex(??-?)]HexNAc(??-
#> # Unique structures: 1