Use data.frame to annotate vertexes of metanet

anno_vertex(go, anno_tab, verbose = TRUE)

Arguments

go

metanet object

anno_tab

a dataframe using to annotate (with rowname or a "name" column)

verbose

logical

Value

a annotated metanet object

See also

Examples

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