c_net_build: Construct a metanet from a corr object

View source: R/build.R

c_net_buildR Documentation

Construct a metanet from a corr object

Description

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

corr

corr object from c_net_calculate() or input_corr().

r_threshold

r_threshold (default: >0.6).

p_threshold

p_threshold (default: <0.05).

use_p_adj

use the p.adjust instead of p.value (default: TRUE), if p.adjust not in the corr object, use p.value.

delete_single

should delete single vertexes?

Value

an metanet object

See Also

Other build: c_net_from_edgelist(), c_net_set(), c_net_update(), multi_net_build()

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

MetaNet documentation built on May 29, 2024, 1:21 a.m.