--- a +++ b/man/c_net_build.Rd @@ -0,0 +1,49 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/2-1.build.R +\name{c_net_build} +\alias{c_net_build} +\title{Construct a metanet from a corr object} +\usage{ +c_net_build( + corr, + r_threshold = 0.6, + p_threshold = 0.05, + use_p_adj = TRUE, + delete_single = TRUE +) +} +\arguments{ +\item{corr}{corr object from \code{c_net_calculate()} or \code{read_corr()}.} + +\item{r_threshold}{r_threshold (default: >0.6).} + +\item{p_threshold}{p_threshold (default: <0.05).} + +\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.} + +\item{delete_single}{should delete single vertexes?} +} +\value{ +an metanet object +} +\description{ +Construct a metanet from a corr object +} +\examples{ +data("otutab", package = "pcutils") +t(otutab) -> totu +metadata[, 3:10] -> env +c_net_calculate(totu) -> corr +c_net_build(corr, r_threshold = 0.65) -> co_net + +c_net_calculate(totu, env) -> corr2 +c_net_build(corr2) -> co_net2 +} +\seealso{ +Other build: +\code{\link{c_net_from_edgelist}()}, +\code{\link{c_net_set}()}, +\code{\link{c_net_update}()}, +\code{\link{multi_net_build}()} +} +\concept{build}