Learn R Programming

gglycan (version 0.0.3)

read_glycan: Read Glycan Data

Description

Parses a glycan string (IUPAC condensed format) and returns a graph object.

Usage

read_glycan(x, format = "iupac")

Value

An `igraph` object representing the glycan structure.

Arguments

x

A character string representing the glycan structure.

format

The format of the string. Currently only "iupac" is supported.

Examples

Run this code
s <- "Neu5Ac(a2-3)Gal(b1-4)GlcNAc(b1-2)Man(a1-3)Man(b1-4)GlcNAc(b1-4)GlcNAc"
g <- read_glycan(s)

Run the code above in your browser using DataLab