Related Experiment Video
Updated: May 17, 2026

Divergence of Root Microbiota in Different Habitats based on Weighted Correlation Networks
Published on: September 25, 2021
Fast R Functions for Robust Correlations and Hierarchical Clustering.
Peter Langfelder1, Steve Horvath
1Department of Human Genetics University of California, Los Angeles Los Angeles, CA 90095-7088, United States of America plangfelder@mednet.ucla.edu.
This study introduces faster R functions for calculating Pearson and biweight correlations and performing hierarchical clustering. These optimized methods significantly reduce computation time for large biological datasets with missing values.
Area of Science:
- Bioinformatics
- Computational Biology
- Data Science
Background:
- High-throughput biological data analysis often involves large correlation matrix calculations and clustering of numerous objects.
- Standard R functions for Pearson correlation are inefficient with missing data, and hierarchical clustering (hclust) has cubic time complexity.
- Existing computational bottlenecks hinder the analysis of large biological datasets.
Purpose of the Study:
- To develop and implement computationally efficient algorithms for correlation calculation and hierarchical clustering in R.
- To accelerate the analysis of large biological datasets, particularly those with missing values.
- To provide robust and fast alternatives to standard R functions for correlation and clustering.
Main Methods:
- Implementation of a parallelized Pearson correlation calculation optimized for datasets with missing values.
- Development of a fast biweight midcorrelation function (bicor) with similar performance gains.
- Introduction of an optimized hierarchical clustering algorithm (flashClust) with quadratic time complexity.
Main Results:
- Substantial speedups achieved for Pearson correlation calculations on data with missing entries.
- Comparable speed improvements for biweight midcorrelation calculations.
- Significant time savings in hierarchical clustering for large datasets using flashClust compared to hclust.
Conclusions:
- The new R functions (cor and bicor in WGCNA, flashClust) offer significant computational advantages for large-scale biological data analysis.
- These optimized methods facilitate more efficient handling of missing data and large object clustering.
- The freely available WGCNA and flashClust packages enhance the capabilities of R for bioinformatics research.
Related Concept Videos
Friedman Two-way Analysis of Variance by Ranks
Coefficient of Correlation
If you suspect a linear relationship between x and y, then r can measure how strong the linear relationship is.
What the VALUE of r tells us:
The value of r is always between –1 and +1: –1 ≤ r ≤ 1.
The size of the correlation r indicates the strength of the linear...
Correlation and Regression
Fisher's Exact Test
Introduction to R
Spearman's Rank Correlation Test
Spearman's test calculates correlation by...
