powered by
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 )
a corr object with 3 elements:
default: spearman correlation
default: p-value of spearman correlation
default p.adjust.method = NULL
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.
vegdist
the prefix of saved .corr file or FALSE.
see p.adjust
p.adjust
see p.adjust.table
p.adjust.table
threads, default: 1.
verbose, default: TRUE.
Other calculate: cal_sim(), fast_cor(), input_corr(), p.adjust.table()
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
Run the code above in your browser using DataLab