bioRxivEvolutionary BiologyPreprint
diempy: fast and reference-free genome polarisation
Abstract
Most ancestry-assignment methods rely on putatively pure reference panels, which are often unrealistic and bias inference. The genome polarisation algorithm diem, introduced previously, avoids reference panels by jointly inferring the polarity of common allelic states and quantifying variant diagnosticity via an expectation-maximisation procedure. Here we present diempy, an efficient python implementation of diem coupled with tools that turn polarised calls into analysis-ready outputs. diempy offers lossless VCF-to-diem BED conversion; ploidy-aware handling of individuals and chromosomes; flexible masking of sites, regions and individuals; and interactive visualisation of polarised genomes, hybrid indices, clines and ternary plots. Post-processing functions include DI thresholding, kernel smoothing, and automatic detection and run-length encoding of contiguous ancestry tracts. BED-based I/O facilitates integration with population-genomic workflows (e.g. filtering by annotation or ploidy). These features make reference-free genome polarisation with diempy practical and reproducible for studies of population structure, admixture and species barriers.
- assay: whole-genome sequencing
- research focus: variant calling
- research focus: genome assembly
- research focus: benchmarking
- research focus: database / resource
- approach: deep learning
- approach: statistical model
- 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
- Polarizing SNPs without outgroup
Jinyang Liang, Julien Yann Dutheil·Molecular Ecology ResourcesPeer-reviewed·Feb 1, 2026
- Minimizing Reference Bias with an Impute-First Approach
Kavya Vaddadi, Taher Mun, Ben Langmead·bioRxiv·Nov 30, 2023
- AncestryPainter 2.0: Visualizing ancestry composition and admixture history graph
Shuanghui Chen, Chang Lei, … Shuhua Xu·Genome Biology and EvolutionPeer-reviewed·Nov 1, 2024
- FGTpartitioner: A rapid method for parsimonious delimitation of ancestry breakpoints in large genome-wide SNP datasets
Tyler K. Chafin·The Journal of Open Source SoftwarePeer-reviewed·Feb 6, 2020
- Haplotype-resolved diploid genome inference on pangenome graphs
Ghanshyam Chandra, William T. Doan, Daniel Gibney·bioRxiv·Nov 26, 2025
- Pydigree: a python library for manipulation and forward-time simulation and of genetic datasets
James E. Hicks·bioRxiv·Nov 5, 2017