corr | R Documentation |
Calculating spearman correlation between each OTU and each metabolites.
corr(m, b, method = "spearman", parallel = FALSE, ncore = 4)
m |
mSet class |
b |
bSet class |
method |
character default is spearman |
parallel |
logical |
ncore |
integer number of core,default is 4 |
the correlation data table
library(data.table)
path <- system.file('extdata','metabolites_and_genera.rda',package = 'mbOmic')
load(path)
names(genera)[1] <- 'rn'
names(metabolites)[1] <- 'rn'
b <- bSet(b = genera)
m <- mSet(m = metabolites)
res <- corr(m, b, method = 'spearman')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.