Anticlustering for Sample Allocation To Minimize Batch Effects
Martin PapenbergiD, Cheng WangiD, Maïgane DiopiD, Syed Hassan Bukhari, Boris OskotskyiD, Brittany R. DavidsoniD, Kim Chi VoiD, Binya Liu, Juan C. IrwiniD, Alexis J. CombesiD, Brice L GaudilliereiD, Jingjing LiiD, David K. StevensoniD, Gunnar W. KlauiD, Linda C. GiudiceiD, Marina SirotaiD, Tomiko OskotskyiD
Abstract
High throughput sequencing is a powerful tool for processing large amounts of DNA and RNA samples in batches. Proper experimental design and statistical methods are required to mitigate systematic technical factors due to differences in batches ("batch effects"), as data variation due to these non-biological factors can mask actual biological differences. We propose using anticlustering as an automated method to assign samples to balanced batches. Anticlustering effectively negates differences in (numeric and/or categorical) covariates among batches, and implements user-defined restrictions on the number of batches, the number of samples per batch, and whether to assign certain samples to the same batch ("must-link constraints"). A simulation study shows that anticlustering is better at achieving balance among batches than previous approaches. An application from the UCSF-Stanford Endometriosis Center for Discovery, Innovation, Training and Community Engagement ("ENACT", https://enactcenter.org/) is presented as a real-life example. In the application, multiple samples provided by an individual had to be processed on the same batch, so that comparisons among different samples of the same patient were not diluted by batch effects. The novel Two Phase Must Link (2PML) anticlustering algorithm realized the must-link restrictions while simultaneously obtaining balance among batches regarding disease stage, menstrual cycle phase, case versus control sample, and clinical site. All methods presented here are accessible via the free and open source R package anticlust (https://cran.r-project.org/package=anticlust). An interactive visualization and web-based batch assignment tool are made available in the Rshiny app "anticlust" (https://anticlust.org/).
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 13th percentile
- Organism
- Assay
- Research Focus
- Approach
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
- Covariate balanced allocation of samples to batches to mitigate the impacts of technical variability.
John F. Mulvey, Alicia Lundby·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- Batch Effect Correction of RNA-seq Data through Sample Distance Matrix Adjustment
Teng Fei, Tianwei Yu·BioinformaticsPeer-reviewed·Feb 6, 2020
- Reproducible Tools and Enhanced Computational Workflows for Batch Effect Evaluation of High-Throughput Data Using BatchQC
Jessica McClintock, Jiwei Zhang, … Alzheimer’s Disease Neuroimaging Initiative·bioRxiv·Feb 13, 2026
- BatchServer: a web server for batch effect evaluation, visualization and correction
Tiansheng Zhu, Rui Sun, … Tiannan Guo·Journal of Proteome ResearchPeer-reviewed·Dec 18, 2020
- Correcting batch effects in large-scale multiomic studies using a reference-material-based ratio method
Ying Yu, Naixin Zhang, … Yuanting Zheng·Genome biologyPeer-reviewed·Sep 6, 2023
- CytoNormPy enables a fast and scalable removal of batch effects in cytometry datasets.
Tarik Exner, Nicolaj S. Hackert, … Ricardo Grieshaber‐Bouyer·Cytometry Part APeer-reviewed·Aug 29, 2025