bioRxivBioinformaticsPreprint
Efficient and scalable Python implementation of ANCOM-BC for omics differential abundance testing
Abstract
ANCOM-BC (Analysis of Compositions of Microbiomes with Bias Correction) is a critical algorithm for differential abundance analysis. Designed for handling compositional data, it features the ability to estimate the unknown sampling fractions and correct the bias induced by their differences. While the original R package is robust for standard dataset sizes, the increasing magnitude of modern multi-omics studies presents computational challenges, often resulting in runtime bottleneck for high-dimensional data. Here, we present a native Python implementation of ANCOM-BC in the scikit-bio package that significantly accelerates the workflow, enabling its application to large-scale datasets. By leveraging the vectorization with NumPy and numerical optimization in SciPy, we enhanced the efficiency without compromising the statistical accuracy of the method. The benchmarking results revealed a dramatic increase in performance in both simulated and real datasets. We demonstrated that our Python implementation generates test results that match the original R package, while achieving a 100-fold acceleration in runtime and an 87% reduction in memory consumption. This new implementation allows for the analysis of datasets that are significantly larger than previously possible, and enables applications to alternative omics data types and complex statistical models that vary greatly by the number of samples, features, and covariates.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Fast and accurate out-of-core PCA framework for large scale biobank data
Zilong Li, Jonas Meisner, Anders Albrechtsen·Genome ResearchPeer-reviewed·Sep 1, 2023
- LOCOM2: Robust Differential Abundance Analysis for Microbiome Data
Mengyu He, Glen A. Satten, Yi‐Juan Hu·bioRxiv·Apr 9, 2026
- Ridge Redundancy Analysis for High-Dimensional Omics Data
Hayato Yoshioka, Julie Aubert, … Tristan Mary‐Huard·bioRxiv·Apr 16, 2025
- SingleRust: A High-Performance Toolkit for Single-Cell Data Analysis at Scale
Ian Ferenc Diks, Matthias Flotho, Andreas Keller·bioRxiv·Aug 4, 2025
- Principled PCA separates signal from noise in omics count data
Jay S. Stanley, Junchen Yang, … Yuval Kluger·bioRxiv·Feb 3, 2025
- NanoPyx: super-fast bioimage analysis powered by adaptive machine learning
Bruno M. Saraiva, Inês Cunha, … Ricardo Henriques·Nature MethodsPeer-reviewed·Jan 2, 2025