Correlation: Co-occurrence calculation

View source: R/RcppExports.R

CorrelationR Documentation

Co-occurrence calculation

Description

Calculate the pair-wise Spearman rank correlation.

Usage

Correlation(X, Y,
cor_coef_cutoff, p_cutoff, method, ncores)

Arguments

X

An otu_table in the format from phyloseq

Y

An otu_table in the format from phyloseq

cor_coef_cutoff

double representing the minimum rho-value accepted for the correlation to be returned.

p_cutoff

double representing the maximum p-value accepted for the correlation to be returned.

method

Pearson, Spearman

ncores

An int for how many cores to use to multithread the calculations.

Value

A data.frame with treatment, otu_1, otu_2, rho, p values.

Author(s)

Schuyler D. Smith

See Also

co_occurrence


schuyler-smith/phyloschuyler documentation built on Aug. 16, 2024, 5:36 a.m.