pyComBat, a Python tool for batch effects correction in high-throughput molecular data using empirical Bayes methods
Open accessPublished version of a preprint
The DOI matches its Crossref record; 38 of the 38 references it cites were found in a registry or an index.
Abstract
Background: Variability in datasets is not only the product of biological processes: they are also the product of technical biases. ComBat and ComBat-Seq are among the most widely used tools for correcting those technical biases, called batch effects, in, respectively, microarray and RNA-Seq expression data. Results: In this technical note, we present a new Python implementation of ComBat and ComBat-Seq. While the mathematical framework is strictly the same, we show here that our implementations: (i) have similar results in terms of batch effects correction; (ii) are as fast or faster than the original implementations in R and; (iii) offer new tools for the bioinformatics community to participate in its development. pyComBat is implemented in the Python language and is distributed under GPL-3.0 ( https://www.gnu.org/licenses/gpl-3.0.en.html ) license as a module of the inmoose package. Source code is available at https://github.com/epigenelabs/inmoose and Python package at https://pypi.org/project/inmoose . Conclusions: We present a new Python implementation of state-of-the-art tools ComBat and ComBat-Seq for the correction of batch effects in microarray and RNA-Seq data. This new implementation, based on the same mathematical frameworks as ComBat and ComBat-Seq, offers similar power for batch effect correction, at reduced computational cost.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
limma powers differential expression analyses for RNA-sequencing and microarray studies
Ritchie, M. E., Phipson, B., Wu, D., Hu, Y., Law, C. W., Shi, W., & Smyth, G. K. (2015) · Nucleic Acids Research · doi:10.1093/nar/gkv007 · Cited by 40,458 · cited 1×
“56.2) [16], comparing 62 Normal tissue and 615 Primary tumor samples.”
BackgroundInfluentialData Structures for Statistical Computing in Python
McKinney, W. (2010) · Proceedings of the Python in Science Conference · doi:10.25080/majora-92bf1922-00a · Cited by 11,032
Exploration, normalization, and summaries of high density oligonucleotide array probe level data
Irizarry, R. A. (2003) · Biostatistics · doi:10.1093/biostatistics/4.2.249 · Cited by 10,603
Fast, sensitive and accurate integration of single-cell data with Harmony
Korsunsky, I., Millard, N., Fan, J., Slowikowski, K., Zhang, F., Wei, K., Baglaenko, Y., Brenner, M., Loh, P.-R., & Raychaudhuri, S. (2019) · Nature Methods · doi:10.1038/s41592-019-0619-0 · Cited by 10,488 · cited 1×
“…lifelines [20], a library dedicated to survival analysis, scanpy [12] (a library dedicated to the analysis of single-cell omic data) or quickly ported in Python from R ( e.g. harmony [21], an R library for integrating single cell data, DESeq2, an R library for differential expression analysis).”
BackgroundThe NumPy Array: A Structure for Efficient Numerical Computation
van der Walt, S., Colbert, S. C., & Varoquaux, G. (2011) · Computing in Science & Engineering · doi:10.1109/mcse.2011.37 · Cited by 9,381
SCANPY: large-scale single-cell gene expression data analysis
Wolf, F. A., Angerer, P., & Theis, F. J. (2018) · Genome Biology · doi:10.1186/s13059-017-1382-0 · Cited by 8,881 · cited 2×
“In comparison to both the R implementation and the existing Python implementation of ComBat in the single-cell analysis library Scanpy [12], we show that pyComBat yields similar results for adjusting for batch effects in microarray data, but is generally faster, in particular for the usually slow,…”
MethodAdjusting batch effects in microarray expression data using empirical Bayes methods
Johnson, W. E., Li, C., & Rabinovic, A. (2007) · Biostatistics · doi:10.1093/biostatistics/kxj037 · Cited by 8,658
Comprehensive molecular characterization of human colon and rectal cancer
The Cancer Genome Atlas Network (2012) · Nature · doi:10.1038/nature11252 · Cited by 8,499
Leek, J. T., Johnson, W. E., Parker, H. S., Jaffe, A. E., & Storey, J. D. (2012) · Bioinformatics · doi:10.1093/bioinformatics/bts034 · Cited by 6,231 · cited 1×
“ComBat, originally implemented in the R library sva [8], is based on the mathematical framework defined in [9].”
MethodNextflow enables reproducible computational workflows
Di Tommaso, P., Chatzou, M., Floden, E. W., Barja, P. P., Palumbo, E., & Notredame, C. (2017) · Nature Biotechnology · doi:10.1038/nbt.3820 · Cited by 4,001 · cited 1×
“Workflow languages (such as Snakemake [17] or Nextflow [18]) and interoperability libraries (such as rpy2 [19]) still need to translate and copy data from one language to the other.”
BackgroundYang, Y. H. (2002) · Nucleic Acids Research · doi:10.1093/nar/30.4.e15 · Cited by 3,464
ComBat-seq: batch effect adjustment for RNA-seq count data
Zhang, Y., Parmigiani, G., & Johnson, W. E. (2020) · NAR Genomics and Bioinformatics · doi:10.1093/nargab/lqaa078 · Cited by 1,566 · cited 3×
“ComBat-Seq, also implemented in the R library sva, is based on a similar mathematical framework, where normal distributions are replaced by negative binomial distributions, to better reflect the statistical behavior of RNA-Seq raw counts data [11].”
BackgroundMethodInfluentialNovel Molecular Subtypes of Serous and Endometrioid Ovarian Cancer Linked to Clinical Outcome
Tothill, R. W., Tinker, A. V., George, J., Brown, R., Fox, S. B., Lade, S., Johnson, D. S., Trivett, M. K., Etemadmoghadam, D., Locandro, B., et al. (2008) · Clinical Cancer Research · doi:10.1158/1078-0432.ccr-08-0196 · Cited by 1,467
Proteogenomic Analysis of Human Colon Cancer Reveals New Therapeutic Opportunities
Vasaikar, S., Huang, C., Wang, X., Petyuk, V. A., Savage, S. R., Wen, B., Dou, Y., Zhang, Y., Shi, Z., Arshad, O. A., et al. (2019) · Cell · doi:10.1016/j.cell.2019.03.030 · Cited by 799
Sustainable data analysis with Snakemake
Mölder, F., Jablonski, K. P., Letcher, B., Hall, M. B., Tomkins-Tinch, C. H., Sochat, V., Forster, J., Lee, S., Twardziok, S. O., Kanitz, A., et al. (2021) · F1000Research · doi:10.12688/f1000research.29032.1 · Cited by 786
Molecular characterisation of soft tissue tumours: a gene expression study
Nielsen, T. O., West, R. B., Linn, S. C., Alter, O., Knowling, M. A., O'Connell, J. X., Zhu, S., Fero, M., Sherlock, G., Pollack, J. R., et al. (2002) · The Lancet · doi:10.1016/s0140-6736(02)08270-3 · Cited by 576
Lander, E. S. (1999) · Nature Genetics · doi:10.1038/4427 · Cited by 554
Chen, C., Grennan, K., Badner, J., Zhang, D., Gershon, E., Jin, L., & Liu, C. (2011) · PLoS ONE · doi:10.1371/journal.pone.0017238 · Cited by 542
A Gene Signature Predicting for Survival in Suboptimally Debulked Patients with Ovarian Cancer
Bonome, T., Levine, D. A., Shih, J., Randonovich, M., Pise-Masison, C. A., Bogomolniy, F., Ozbun, L., Brady, J., Barrett, J. C., Boyd, J., et al. (2008) · Cancer Research · doi:10.1158/0008-5472.can-07-6595 · Cited by 439 · cited 1×
“Ovarian Cancer (microarray) GSE26712 [25, 26] GSE38666 [27, 28] Multiple Myeloma (microarray) GSE66291 [32, 33] GSE68891 GSE122231 [34, 35] Breast cancer (RNA-Seq) GSE59765 [37] Colon cancer (RNA-Seq) phs000892.v6.p1 [38] phs000178.v11.p8 [39]”
Adjustment of systematic microarray data biases
Benito, M., Parker, J., Du, Q., Wu, J., Xiang, D., Perou, C. M., & Marron, J. S. (2004) · Bioinformatics · doi:10.1093/bioinformatics/btg385 · Cited by 426 · cited 1×
“analysis [5]; and machine learning, such as support-vector machines [6].”
BackgroundZhan, F., Barlogie, B., Arzoumanian, V., Huang, Y., Williams, D. R., Hollmig, K., Pineda-Roman, M., Tricot, G., van Rhee, F., Zangari, M., et al. (2007) · Blood · doi:10.1182/blood-2006-07-037077 · Cited by 381
Mok, S. C., Bonome, T., Vathipadiekal, V., Bell, A., Johnson, M. E., Wong, K.-K., Park, D.-C., Hao, K., Yip, D. K. P., Donninger, H., et al. (2009) · Cancer Cell · doi:10.1016/j.ccr.2009.10.018 · Cited by 255
Effects of Atmospheric Ozone on Microarray Data Quality
Fare, T. L., Coffey, E. M., Dai, H., He, Y. D., Kessler, D. A., Kilian, K. A., Koch, J. E., LeProust, E., Marton, M. J., Meyer, M. R., et al. (2003) · Analytical Chemistry · doi:10.1021/ac034241b · Cited by 229
Huang, C., Clayton, E. A., Matyunina, L. V., McDonald, L. D., Benigno, B. B., Vannberg, F., & McDonald, J. F. (2018) · Scientific Reports · doi:10.1038/s41598-018-34753-5 · Cited by 193 · cited 1×
“Ovarian Cancer (microarray) GSE26712 [25, 26] GSE38666 [27, 28] Multiple Myeloma (microarray) GSE66291 [32, 33] GSE68891 GSE122231 [34, 35] Breast cancer (RNA-Seq) GSE59765 [37] Colon cancer (RNA-Seq) phs000892.v6.p1 [38] phs000178.v11.p8 [39]”
Dhodapkar, M. V., Sexton, R., Waheed, S., Usmani, S., Papanikolaou, X., Nair, B., Petty, N., Shaughnessy, J. D., Hoering, A., Crowley, J., et al. (2014) · Blood · doi:10.1182/blood-2013-07-515239 · Cited by 192
Automatic Lip-Contour Extraction and Mouth-Structure Segmentation in Images
Gómez-Mendoza, J.-B., Prieto, F., & Redarce, T. (2011) · Computing in Science & Engineering · doi:10.1109/mcse.2010.145 · Cited by 187
A multivariate empirical Bayes statistic for replicated microarray time course data
Tai, Y. C., & Speed, T. P. (2006) · The Annals of Statistics · doi:10.1214/009053606000000759 · Cited by 172
Making sense of microarray data distributions
Hoyle, D. C., Rattray, M., Jupp, R., & Brass, A. (2002) · Bioinformatics · doi:10.1093/bioinformatics/18.4.576 · Cited by 162 · cited 1×
“This approach is based on the fact that microarray expression data are generally distributed according to a log-normal distribution [10].”
BackgroundDriscoll, J. J., Pelluru, D., Lefkimmiatis, K., Fulciniti, M., PRABHALA, R. H., Greipp, P. R., Barlogie, B., Tai, Y., Anderson, K. C., Shaughnessy, J. D., et al. (2009) · Blood · doi:10.1182/blood-2009-03-211045 · Cited by 136
Vathipadiekal, V., Wang, V., Wei, W., Waldron, L., Drapkin, R., Gillette, M. A., Skates, S. J., & Birrer, M. J. (2015) · Clinical Cancer Research · doi:10.1158/1078-0432.ccr-14-3173 · Cited by 99 · cited 1×
“Ovarian Cancer (microarray) GSE26712 [25, 26] GSE38666 [27, 28] Multiple Myeloma (microarray) GSE66291 [32, 33] GSE68891 GSE122231 [34, 35] Breast cancer (RNA-Seq) GSE59765 [37] Colon cancer (RNA-Seq) phs000892.v6.p1 [38] phs000178.v11.p8 [39]”
Lionetti, M., Barbieri, M., Todoerti, K., Agnelli, L., Marzorati, S., Fabris, S., Ciceri, G., Galletti, S., Milesi, G., Manzoni, M., et al. (2015) · Oncotarget · doi:10.18632/oncotarget.4434 · Cited by 88
In vitro and in vivo correlates of physiological and neoplastic human Fallopian tube stem cells
Yamamoto, Y., Ning, G., Howitt, B. E., Mehra, K. K., Wu, L., Wang, X., Yue, H., Kern, F., Wei, T. S., Zhang, T., et al. (2015) · The Journal of Pathology · doi:10.1002/path.4649 · Cited by 75
Khan, R., Dhodapkar, M., Rosenthal, A., Heuck, C., Papanikolaou, X., Qu, P., van Rhee, F., Zangari, M., Jethava, Y., Epstein, J., et al. (2015) · Haematologica · doi:10.3324/haematol.2015.124651 · Cited by 56
Lili, L. N., Matyunina, L. V., Walker, L. D., Benigno, B. B., & McDonald, J. F. (2013) · BioMed Research International · doi:10.1155/2013/846387 · Cited by 54 · cited 1×
“Ovarian Cancer (microarray) GSE26712 [25, 26] GSE38666 [27, 28] Multiple Myeloma (microarray) GSE66291 [32, 33] GSE68891 GSE122231 [34, 35] Breast cancer (RNA-Seq) GSE59765 [37] Colon cancer (RNA-Seq) phs000892.v6.p1 [38] phs000178.v11.p8 [39]”
A compendium of DIS3 mutations and associated transcriptional signatures in plasma cell dyscrasias
Lionetti, M., Barbieri, M., Todoerti, K., Agnelli, L., Fabris, S., Tonon, G., Segalla, S., Cifola, I., Pinatel, E., Tassone, P., et al. (2015) · Oncotarget · doi:10.18632/oncotarget.4674 · Cited by 49
McQuerry, J. A., Jenkins, D. F., Yost, S. E., Zhang, Y., Schmolze, D. B., Johnson, W. E., Yuan, Y., & Bild, A. H. (2019) · BMC Cancer · doi:10.1186/s12885-019-6052-z · Cited by 26 · cited 1×
“Ovarian Cancer (microarray) GSE26712 [25, 26] GSE38666 [27, 28] Multiple Myeloma (microarray) GSE66291 [32, 33] GSE68891 GSE122231 [34, 35] Breast cancer (RNA-Seq) GSE59765 [37] Colon cancer (RNA-Seq) phs000892.v6.p1 [38] phs000178.v11.p8 [39]”
Li, C., Wendlandt, E. B., Darbro, B. W., Xu, H., Thomas, G. S., Tricot, G. J. K., Chen, F., Shaughnessy, J. D., & Zhan, F. (2021) · Cancers · doi:10.3390/cancers13030517 · Cited by 23
Rahman, M., Macneil, S., Jenkins, D. F., Shrestha, G., Wyatt, S. R., McQuerry, J. A., Piccolo, S., Heiser, L., Gray, J., Johnson, W. E., et al. (2017) · Genome Medicine · doi:10.1186/s13073-017-0429-x · Cited by 15
Cited by
OmicVerse: a framework for bridging and deepening insights across bulk and single-cell sequencing
Zeng, Z., Ma, Y., Hu, L., Tan, B., Liu, P., Wang, Y., Xing, C., Xiong, Y., & Du, H. (2024) · Nature Communications · doi:10.1038/s41467-024-50194-3 · Cited by 102
“Incorporating a suite of state-of-the-art scRNA-seq algorithms, OmicVerse ’ s integrated toolset includes pyHarmony 46 , pyCombat 38 , scanorama 47 for batch correction, pySCSA 48 , updated with CellMarker 49 2.0 and CancerSEA 50 for enhanced cell-type annotation, CellPhoneDB 12 for cell-cell…”
InfluentialBorràs, D. M., Verbandt, S., Ausserhofer, M., Sturm, G., Lim, J., Verge, G. A., Vanmeerbeek, I., Laureano, R. S., Govaerts, J., Sprooten, J., et al. (2023) · Cell Discovery · doi:10.1038/s41421-023-00605-4 · Cited by 67
Perspectives for better batch effect correction in mass-spectrometry-based proteomics
Phua, S.-X., Lim, K.-P., & Goh, W. W.-B. (2022) · Computational and Structural Biotechnology Journal · doi:10.1016/j.csbj.2022.08.022 · Cited by 42
“To correct for BEs, we used the Python implementation of ComBat [8], pyCombat [39], available at https://epigenelabs.”
MethodNeely, J., Hartoularos, G., Bunis, D., Sun, Y., Lee, D., Kim, S., Ye, C. J., & Sirota, M. (2022) · Frontiers in Immunology · doi:10.3389/fimmu.2022.902232 · Cited by 26
Maarseveen, T. D., Glas, H. K., Veris-van Dieren, J., van den Akker, E., & Knevel, R. (2025) · npj Digital Medicine · doi:10.1038/s41746-025-01495-4 · Cited by 17
Metadata
- Authors
- Behdenna, A., Colange, M., Haziza, J., Gema, A., Appé, G., Azencott, C.-A., & Nordor, A.
- Venue
- BMC Bioinformatics
- Published
- 2023-12-07
- Volume
- 24
- Issue
- 1
- Pages
- 459-459
- ISSN
- 1471-2105 (ISSN-L)
- OpenAlex
- W4389410347
- Cited by
- 165
- References
- 38
- FWCI
- 11.58
- Type
- journal article
- Language
- en
- Open access
- gold
- Licence
- creativecommons.org/licenses/by/4.0 (tdm)
- creativecommons.org/licenses/by/4.0 (vor)
- Funders
- European Union's Horizon 2020 research and innovation program (190185351)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.