anno_edge {MetaNet}R Documentation

Use dataframe to annotate edges of an igraph

Description

Use dataframe to annotate edges of an igraph

Usage

anno_edge(go, anno_tab, verbose = TRUE)

Arguments

go

metanet an igraph object

anno_tab

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

verbose

logical

Value

a annotated igraph object

See Also

Other manipulate: anno_vertex(), c_net_annotate(), c_net_filter(), c_net_save(), c_net_union(), get_e(), get_n(), get_v(), is_metanet()

Examples

data("c_net")
anno <- data.frame("from" = "s__Pelomonas_puraquae", "to" = "s__un_g__Rhizobium", new_atr = "new")
anno_edge(co_net, anno) -> anno_net

[Package MetaNet version 0.1.2 Index]