Efficient and scalable Python implementation of ANCOM-BC and ANCOM-BC2 for omics differential abundance testing.

SUMMARY Analysis of Compositions of Microbiomes with Bias Correction (ANCOM-BC) and its successor ANCOM-BC2 are critical algorithms for differential abundance analysis. Designed for handling compositional data, they feature the ability to estimate the unknown sampling fractions and correct the bias induced by their differences. While the original R package implementing the two methods is robust for standard dataset sizes, the increasing magnitude of modern multi-omics studies presents computational challenges, often resulting in a runtime bottleneck for high-dimensional data. Here, we present native Python implementations of both ANCOM-BC and ANCOM-BC2 in the scikit-bio package, significantly accelerating the workflow and enabling their application to large-scale datasets. By leveraging vectorization with NumPy and numerical optimization in SciPy, we enhanced the efficiency of both methods without compromising their statistical accuracy. The benchmarking results revealed a dramatic increase in performance in both simulated and real datasets. We demonstrated that our Python implementations generated test results matching the original R code, while achieving 380- and 147-fold faster runtimes and 97.4% and 96.2% lower memory consumption on the largest tested dataset, respectively. The Python implementations allow for the analysis of datasets that are significantly larger than previously possible, and enable applications to alternative omics data types and complex statistical models that vary greatly by the number of samples, features, and covariates. AVAILABILITY AND IMPLEMENTATION https://github.com/scikit-bio/scikit-bio. SUPPLEMENTARY INFORMATION N/A.

Link
https://www.semanticscholar.org/paper/418f6e9ad39a8f1409bafe1deaa15aad09e6afc8
Found by
Semantic Scholar
Authors
Zi-Jun Wu, Huang Lin, James T. Morton, Qi-Yun Zhu
Categories
benchmark, dataset
Published
2026-10-13
Last seen by the radar
2026-10-15
Citations
0
Influential citations
0
Radar score
35.50 / 100 (how it is scored)
Why it scored so
Matched: benchmark, dataset; Primary record: Semantic Scholar
Related links
https://doi.org/10.1093/bioinformatics/btag767
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar