R/1.calculate.R
c_net_calculate.Rd
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
)
t(otutab), row are samples, column are features.
t(otutab2) or NULL, row are samples, column are features.
"spearman" (default), "pearson", "sparcc", or distance index from vegdist
.
the prefix of saved .corr file or FALSE.
see p.adjust
see p.adjust.table
threads, default: 1.
verbose, default: TRUE.
a corr object with 3 elements:
default: spearman correlation
default: p-value of spearman correlation
default p.adjust.method = NULL
Other calculate:
cal_sim()
,
fast_cor()
,
p.adjust.table()
,
read_corr()