Use data.frame to annotate vertexes of metanet
anno_vertex(go, anno_tab, verbose = TRUE)
a annotated metanet object
Other manipulate:
anno_edge()
,
c_net_annotate()
,
c_net_filter()
,
c_net_load()
,
c_net_save()
,
c_net_union()
,
get_e()
,
get_n()
,
get_v()
,
is_metanet()
data("c_net")
data("otutab", package = "pcutils")
anno_vertex(co_net, taxonomy)
#> 7 attributes will be overwrited:
#> Kingdom, Phylum, Class, Order, Family, Genus, Species
#> =================================== metanet ====================================
#> IGRAPH 620c6b7 UNW- 451 740 --
#> + attr: n_type (g/c), name (v/c), v_group (v/c), v_class (v/c), size
#> | (v/n), label (v/c), shape (v/c), color (v/c), Abundance (v/n),
#> | Kingdom (v/c), Phylum (v/c), Class (v/c), Order (v/c), Family (v/c),
#> | Genus (v/c), Species (v/c), id (e/n), from (e/c), to (e/c), weight
#> | (e/n), cor (e/n), p.value (e/n), e_type (e/c), width (e/n), color
#> | (e/c), e_class (e/c), lty (e/n)
#> + edges from 620c6b7 (vertex names):
#> [1] s__un_f__Thermomonosporaceae--s__Actinocorallia_herbida
#> [2] s__un_f__Thermomonosporaceae--s__Kribbella_catacumbae
#> [3] s__un_f__Thermomonosporaceae--s__Kineosporia_rhamnosa
#> + ... omitted several edges