Learn R Programming

gglycan (version 0.0.3)

match_snfg_style: Match SNFG Style to Graph Nodes

Description

Maps glycan node labels to SNFG shapes and colors.

Usage

match_snfg_style(graph)

Value

An `igraph` object with additional vertex attributes: `snfg_shape` (numeric starshape) and `snfg_fill` (color).

Arguments

graph

An `igraph` object.

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)
g <- match_snfg_style(g)

Run the code above in your browser using DataLab