Learn R Programming

glyrepr (version 0.10.1)

get_structure_graphs: Access Individual Glycan Structures

Description

Extract individual glycan structure graphs from a glycan structure vector.

Usage

get_structure_graphs(x, return_list = NULL)

Value

A list of igraph objects or an igraph object directly (see return_list parameter).

Arguments

x

A glycan structure vector.

return_list

If TRUE, always returns a list. If FALSE and x has a length of 1, return the igraph object directly. If not provided (default), FALSE when x has a length of 1 and TRUE otherwise.

Examples

Run this code
structures <- c(o_glycan_core_1(), n_glycan_core())
get_structure_graphs(structures)
get_structure_graphs(structures)

Run the code above in your browser using DataLab