# diplo-locus: a lightweight toolkit for inference and simulation of time-series genetic data under general diploid selection

**Authors:** Xiaoheng Cheng, Matthias Steinrücken

PMC · DOI: 10.1093/g3journal/jkaf123 · G3: Genes | Genomes | Genetics · 2025-06-06

## TL;DR

diplo-locus is a Python toolkit for simulating and analyzing time-series genetic data under diploid selection models.

## Contribution

It introduces a user-friendly, open-source implementation for inference and simulation under general diploid selection.

## Key findings

- diplo-locus provides tools for simulating genetic data under the Wright–Fisher diffusion model.
- The package supports inference of selection parameters from time-series allele frequency data.
- It includes both Python modules and command-line tools for accessibility and scalability.

## Abstract

Whole-genome time-series allele frequency data are becoming more prevalent as ancient DNA sequences and data from evolve-and-resequence experiments are generated at a rapid pace. Such data present unprecedented opportunities to elucidate the dynamics of genetic variation under selection. However, despite many methods to infer parameters of selection models from allele frequency trajectories available in the literature, few provide user-friendly implementations for large-scale empirical applications. Here, we present diplo-locus, an open-source Python package that provides functionality to simulate and perform inference from time-series data under the Wright–Fisher diffusion with general diploid selection. The package includes Python modules as well as command-line tools and is available at: https://github.com/steinrue/diplo_locus.

## Full-text entities

- **Genes:** MCM6 (minichromosome maintenance complex component 6) [NCBI Gene 4175] {aka MCG40308, Mis5, P105MCM}, ASIP (agouti signaling protein) [NCBI Gene 434] {aka AGSW, AGTI, AGTIL, ASP, SHEP9}, LCT (lactase) [NCBI Gene 3938] {aka LAC, LPH, LPH1}
- **Species:** Drosophila melanogaster (fruit fly, species) [taxon 7227], Equus caballus (domestic horse, species) [taxon 9796], Drosophila simulans (species) [taxon 7240], Homo sapiens (human, species) [taxon 9606]
- **Mutations:** rs4988235, 2L from D

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12341859/full.md

## Figures

2 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12341859/full.md

## References

19 references — full list in the complete paper: https://tomesphere.com/paper/PMC12341859/full.md

---
Source: https://tomesphere.com/paper/PMC12341859