Construct a metanet from a corr object

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 read_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

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
#> Have not do p-value adjustment! use the p.value to build network.

c_net_calculate(totu, env) -> corr2
#> All samples matched.
#> All features are OK.
c_net_build(corr2) -> co_net2
#> Have not do p-value adjustment! use the p.value to build network.