Description Usage Arguments Details Value Author(s) References Examples
Cross-correlate columns of the input matrices.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
matrix (samples x features if annotation matrix) |
y |
matrix (samples x features if cross-correlated with annotations) |
method |
association method ('pearson', or 'spearman' for continuous; categorical for discrete) |
p.adj.threshold |
q-value threshold to include features |
cth |
correlation threshold to include features |
order |
order the results |
n.signif |
mininum number of significant correlations for each element |
mode |
Specify output format ('table' or 'matrix') |
p.adj.method |
p-value multiple testing correction method. One of the methods in p.adjust function ('BH' and others; see help(p.adjust)). Default: 'fdr' |
verbose |
verbose |
filter.self.correlations |
Filter out correlations between identical items. |
As the method=categorical (discrete) association measure for nominal (no order for levels) variables we use Goodman and Kruskal tau based on r-bloggers.com/measuring-associations-between-non-numeric-variables/
The p-values in the output table depend on the method. For the spearman and pearson correlation values, the p-values are provided by the default method in the cor.test function. For the categorical method, the p-value is estimated with the microbiome::gktau function (see the separate help page).
List with cor, pval, pval.adjusted
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.