a b/man/c_net_build.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/2-1.build.R
3
\name{c_net_build}
4
\alias{c_net_build}
5
\title{Construct a metanet from a corr object}
6
\usage{
7
c_net_build(
8
  corr,
9
  r_threshold = 0.6,
10
  p_threshold = 0.05,
11
  use_p_adj = TRUE,
12
  delete_single = TRUE
13
)
14
}
15
\arguments{
16
\item{corr}{corr object from \code{c_net_calculate()} or \code{read_corr()}.}
17
18
\item{r_threshold}{r_threshold (default: >0.6).}
19
20
\item{p_threshold}{p_threshold (default: <0.05).}
21
22
\item{use_p_adj}{use the p.adjust instead of p.value (default: TRUE), if p.adjust not in the corr object, use p.value.}
23
24
\item{delete_single}{should delete single vertexes?}
25
}
26
\value{
27
an metanet object
28
}
29
\description{
30
Construct a metanet from a corr object
31
}
32
\examples{
33
data("otutab", package = "pcutils")
34
t(otutab) -> totu
35
metadata[, 3:10] -> env
36
c_net_calculate(totu) -> corr
37
c_net_build(corr, r_threshold = 0.65) -> co_net
38
39
c_net_calculate(totu, env) -> corr2
40
c_net_build(corr2) -> co_net2
41
}
42
\seealso{
43
Other build: 
44
\code{\link{c_net_from_edgelist}()},
45
\code{\link{c_net_set}()},
46
\code{\link{c_net_update}()},
47
\code{\link{multi_net_build}()}
48
}
49
\concept{build}