c_net_calculate | R Documentation |
Calculate correlation for one or two t(otutab), or distance for one t(otutab).
c_net_calculate(
totu,
totu2 = NULL,
method = "spearman",
filename = FALSE,
p.adjust.method = NULL,
p.adjust.mode = "all",
threads = 1,
verbose = TRUE
)
totu |
t(otutab), row are samples, column are features. |
totu2 |
t(otutab2) or NULL, row are samples, column are features. |
method |
"spearman" (default), "pearson", "sparcc", or distance index from |
filename |
the prefix of saved .corr file or FALSE. |
p.adjust.method |
see |
p.adjust.mode |
see |
threads |
threads, default: 1. |
verbose |
verbose, default: TRUE. |
a corr object with 3 elements:
r |
default: spearman correlation |
p.value |
default: p-value of spearman correlation |
p.adjust |
default p.adjust.method = NULL |
Other calculate:
cal_sim()
,
fast_cor()
,
input_corr()
,
p.adjust.table()
data("otutab", package = "pcutils")
t(otutab) -> totu
c_net_calculate(totu) -> corr
metadata[, 3:10] -> env
c_net_calculate(totu, env) -> corr2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.