Filter a network according to some attributes

c_net_filter(go, ..., mode = "v")

Arguments

go

metanet object

...

some attributes of vertex and edge

mode

"v" or "e"

Value

metanet

See also

Examples

data("multi_net")
c_net_filter(multi1, v_group %in% c("omic1", "omic2"))
#> The network is empty.
#> =================================== metanet ==================================== 
#> IGRAPH 366465d UNWB 0 0 -- 
#> + 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), Kingdom (v/c), Phylum
#> | (v/c), Class (v/c), Order (v/c), Family (v/c), Genus (v/c), Species
#> | (v/c), kingdom (v/c), class (v/c), type (v/c), type2 (v/c),
#> | Abundance1 (v/n), Abundance2 (v/n), Abundance3 (v/n), 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), e_class (e/c), color (e/c), lty (e/n),
#> | v_group_from (e/c), v_group_to (e/c)
#> + edges from 366465d (vertex names):