corr: corr

corrR Documentation

corr

Description

Calculating spearman correlation between each OTU and each metabolites.

Usage

corr(m, b, method = "spearman", parallel = FALSE, ncore = 4)

Arguments

m

mSet class

b

bSet class

method

character default is spearman

parallel

logical

ncore

integer number of core,default is 4

Value

the correlation data table

Examples

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')

gongcongcong/mbOmic documentation built on July 1, 2023, 1:47 p.m.