Description Usage Arguments Value Author(s) References Examples
Computes correlation matrix for a metabolomics dataset or compares the correlation between two metabolomics datasets
1 2 3 |
featuredata1 |
A data frame in the featuredata format. This is a dataframe with metabolites in columns and samples in rows. Unique sample names should be provided as row names. |
featuredata2 |
A data frame in the featuredata format. This is a dataframe with metabolites in columns and samples in rows. Unique sample names should be provided as row names. |
method |
Must be one of "pearson", "spearman" or "kendall" |
padjmethod |
p-value adjustment method. Must be one of "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr" or "none" |
saveoutput |
A logical indicating whether the results should be saved as a .csv file. |
outputname |
The name of the output file if the output has to be saved. |
The result is an object of class ‘results’.
@seealso comp.2.cc.fdr
.
Alysha M De Livera, Gavriel Olshansky
Fukushima, A. Gene (2013) 518, 209-214
1 2 3 4 5 | data("featuredata_roots")
featuredata_roots[featuredata_roots==0]<-NA
imp_data<-MissingValues(LogTransform(featuredata_roots)$featuredata)$featuredata
Corr( imp_data[c(1:17),], imp_data[c(18:37),])
Corr( imp_data[c(1:17),])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.