[HTML][HTML] Fast R functions for robust correlations and hierarchical clustering

P Langfelder, S Horvath - Journal of statistical software, 2012 - ncbi.nlm.nih.gov
Journal of statistical software, 2012ncbi.nlm.nih.gov
Many high-throughput biological data analyses require the calculation of large correlation
matrices and/or clustering of a large number of objects. The standard R function for
calculating Pearson correlation can handle calculations without missing values efficiently,
but is inefficient when applied to data sets with a relatively small number of missing data. We
present an implementation of Pearson correlation calculation that can lead to substantial
speedup on data with relatively small number of missing entries. Further, we parallelize all …
Abstract
Many high-throughput biological data analyses require the calculation of large correlation matrices and/or clustering of a large number of objects. The standard R function for calculating Pearson correlation can handle calculations without missing values efficiently, but is inefficient when applied to data sets with a relatively small number of missing data. We present an implementation of Pearson correlation calculation that can lead to substantial speedup on data with relatively small number of missing entries. Further, we parallelize all calculations and thus achieve further speedup on systems where parallel processing is available. A robust correlation measure, the biweight midcorrelation, is implemented in a similar manner and provides comparable speed. The functions cor and bicor for fast Pearson and biweight midcorrelation, respectively, are part of the updated, freely available R package WGCNA.
ncbi.nlm.nih.gov