|
a |
|
b/man/anno_edge.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/2-2.manipulate.R |
|
|
3 |
\name{anno_edge} |
|
|
4 |
\alias{anno_edge} |
|
|
5 |
\title{Use dataframe to annotate edges of an igraph} |
|
|
6 |
\usage{ |
|
|
7 |
anno_edge(go, anno_tab, verbose = TRUE) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{go}{metanet an igraph object} |
|
|
11 |
|
|
|
12 |
\item{anno_tab}{a dataframe using to annotate (with rowname or a name column)} |
|
|
13 |
|
|
|
14 |
\item{verbose}{logical} |
|
|
15 |
} |
|
|
16 |
\value{ |
|
|
17 |
a annotated igraph object |
|
|
18 |
} |
|
|
19 |
\description{ |
|
|
20 |
Use dataframe to annotate edges of an igraph |
|
|
21 |
} |
|
|
22 |
\examples{ |
|
|
23 |
data("c_net") |
|
|
24 |
anno <- data.frame("from" = "s__Pelomonas_puraquae", "to" = "s__un_g__Rhizobium", new_atr = "new") |
|
|
25 |
anno_edge(co_net, anno) -> anno_net |
|
|
26 |
} |
|
|
27 |
\seealso{ |
|
|
28 |
Other manipulate: |
|
|
29 |
\code{\link{anno_vertex}()}, |
|
|
30 |
\code{\link{c_net_annotate}()}, |
|
|
31 |
\code{\link{c_net_filter}()}, |
|
|
32 |
\code{\link{c_net_load}()}, |
|
|
33 |
\code{\link{c_net_save}()}, |
|
|
34 |
\code{\link{c_net_union}()}, |
|
|
35 |
\code{\link{get_e}()}, |
|
|
36 |
\code{\link{get_n}()}, |
|
|
37 |
\code{\link{get_v}()}, |
|
|
38 |
\code{\link{is_metanet}()} |
|
|
39 |
} |
|
|
40 |
\concept{manipulate} |