
Access Individual Glycan Structures
get_structure_graphs.Rd
Extract individual glycan structure graphs from a glycan structure vector.
Examples
structures <- glycan_structure(o_glycan_core_1(), n_glycan_core())
get_structure_graphs(structures, 1)
#> IGRAPH cf24c1a DN-- 2 1 --
#> + attr: anomer (g/c), name (v/c), mono (v/c), sub (v/c), linkage (e/c)
#> + edge from cf24c1a (vertex names):
#> [1] 1->2
get_structure_graphs(structures, c(1, 2))
#> [[1]]
#> IGRAPH cf24c1a DN-- 2 1 --
#> + attr: anomer (g/c), name (v/c), mono (v/c), sub (v/c), linkage (e/c)
#> + edge from cf24c1a (vertex names):
#> [1] 1->2
#>
#> [[2]]
#> IGRAPH 202ccaf DN-- 5 4 --
#> + attr: anomer (g/c), name (v/c), mono (v/c), sub (v/c), linkage (e/c)
#> + edges from 202ccaf (vertex names):
#> [1] 1->2 2->3 3->4 3->5
#>