snputils: A High-Performance Python Library for Genetic Variation and Population Structure

Large-scale genomic and population-genetic datasets offer unprecedented opportunities to study population structure and uncover the genetic basis of complex traits and diseases. Existing analytical tools, however, are characterized by format incompatibilities, limited functionality, and computational inefficiencies, forcing researchers to construct pipelines chaining together fragmented command-line utilities and ad hoc scripts. These are difficult to maintain, scale, and reproduce. We present snputils, an open-source Python library for high-performance processing and analysis of genotype, ancestry, phenotype, and identity-by-descent data within a single framework suitable for biobank-scale research. snputils provides unified data containers and efficient routines for genotype quality control, filtering, merging, and computing classical population-genetic statistics, with optional ancestry-specific masking. An identity-by-descent module supports reading multiple formats, filtering, and ancestry-restricted segment trimming for relatedness and demographic inference. snputils also incorporates ancestry masking and multi-array functionalities for dimensionality reduction methods, as well as efficient implementations of admixture simulation, admixture mapping, genome-wide association testing, and advanced visualization capabilities. With support for the most commonly used file formats, snputils natively supports human and non-human diploid datasets represented in standard formats. At the same time, its modular and optimized design reduces technical overhead, facilitating reproducible workflows that accelerate discoveries in population genetics, genomic research, and precision medicine. Benchmarks show faster I/O and concordant PCA, allele-frequency statistics, and admixture mapping results relative to established reference tools, with substantial runtime reductions. snputils is available at https://github.com/AI-sandbox/snputils, with documentation and tutorials at docs.snputils.org.

Authors

Institutions

Publication Details

Journal
Molecular Biology and Evolution
Published
2026-11-26
DOI
https://doi.org/10.1093/molbev/msag291
Citations
8
Primary Topic
Genetic Associations and Epidemiology
Type
article
Field-Weighted Citation Impact
12.98
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

snputils: A High-Performance Python Library for Genetic Variation and Population Structure

Míriam Barrabés, Cayetana López, Alexander G. Ioannidis, Margarita Geleta et al.
8 citations
Molecular Biology and Evolution
Genetic Associations and Epidemiology
12.98
article

snputils: A High-Performance Python Library for Genetic Variation and Population Structure

Míriam Barrabés, Cayetana López, Alexander G. Ioannidis, Margarita Geleta, M Cara, Cole Shanks, Khaled Aounallah, Christophe Thomassin, Albert Dominguez Mantes, Benet Oriol Sàbat, David Bonet, Jordi Abante, Devang Agrawal, Daniel Mas Montserrat, Sonia Moreno–Grau, Riccardo Smeriglio, Edward C. Huang, Joan Saurina, Marc Franquesa Monés, Aina Luis, Maria Perera, Ainel Jaras
article en
8 citations

Abstract

Large-scale genomic and population-genetic datasets offer unprecedented opportunities to study population structure and uncover the genetic basis of complex traits and diseases. Existing analytical tools, however, are characterized by format incompatibilities, limited functionality, and computational inefficiencies, forcing researchers to construct pipelines chaining together fragmented command-line utilities and ad hoc scripts. These are difficult to maintain, scale, and reproduce. We present snputils, an open-source Python library for high-performance processing and analysis of genotype, ancestry, phenotype, and identity-by-descent data within a single framework suitable for biobank-scale research. snputils provides unified data containers and efficient routines for genotype quality control, filtering, merging, and computing classical population-genetic statistics, with optional ancestry-specific masking. An identity-by-descent module supports reading multiple formats, filtering, and ancestry-restricted segment trimming for relatedness and demographic inference. snputils also incorporates ancestry masking and multi-array functionalities for dimensionality reduction methods, as well as efficient implementations of admixture simulation, admixture mapping, genome-wide association testing, and advanced visualization capabilities. With support for the most commonly used file formats, snputils natively supports human and non-human diploid datasets represented in standard formats. At the same time, its modular and optimized design reduces technical overhead, facilitating reproducible workflows that accelerate discoveries in population genetics, genomic research, and precision medicine. Benchmarks show faster I/O and concordant PCA, allele-frequency statistics, and admixture mapping results relative to established reference tools, with substantial runtime reductions. snputils is available at https://github.com/AI-sandbox/snputils, with documentation and tutorials at docs.snputils.org.

Molecular Biology and Evolution
École Polytechnique (FR), University of California, Los Angeles (US), Politecnico di Torino (IT), University of California, Santa Cruz (US), Munster Technological University (IE), École Polytechnique Fédérale de Lausanne (CH), Universitat de Barcelona (ES), University of California, Berkeley (US), Universitat Politècnica de Catalunya (ES), Stanford University (US)
Openalex Percentile: Top 1%
Genetic Associations and Epidemiology
12.98
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon