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
)
corr object from c_net_calculate()
or read_corr()
.
r_threshold (default: >0.6).
p_threshold (default: <0.05).
use the p.adjust instead of p.value (default: TRUE), if p.adjust not in the corr object, use p.value.
should delete single vertexes?
an metanet object
Other build:
c_net_from_edgelist()
,
c_net_set()
,
c_net_update()
,
multi_net_build()
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.