Molecular Ecology ResourcesGeneticsPeer-reviewed journal article
SambaR: an R package for fast, easy and reproducible population-genetic analyses of biallelic SNP datasets
Menno de JongiD, Joost F. de JongiD, A. Rus HoelzeliD, Axel JankeiD
Abstract
BackgroundSNP datasets can be used to infer a wealth of information about natural populations, including information about their structure, genetic diversity, and the presence of loci under selection. However, SNP data analysis can be a time-consuming and challenging process, not in the least because at present many different software packages are needed to execute and depict the wide variety of mainstream population-genetic analyses. Here we present SambaR, an integrative and user-friendly R package which automates and simplifies quality control and population-genetic analyses of biallelic SNP datasets. SambaR allows users to perform mainstream population-genetic analyses and to generate a wide variety of ready to publish graphs with a minimum number of commands (less than ten). These wrapper commands call functions of existing packages (including adegenet, ape, LEA, poppr, pcadapt and StAMPP) as well as new tools uniquely implemented in SambaR. ResultsWe tested SambaR on online available SNP datasets and found that SambaR can process datasets of millions of SNPs and hundreds of individuals within hours, given sufficient computing power. Newly developed tools implemented in SambaR facilitate optimization of filter settings, objective interpretation of ordination analyses, enhance comparability of diversity estimates from reduced representation library SNP datasets, and generate reduced SNP panels and structure-like plots with Bayesian population assignment probabilities. ConclusionSambaR facilitates rapid population genetic analyses on biallelic SNP datasets by removing three major time sinks: file handling, software learning, and data plotting. In addition, SambaR provides a convenient platform for SNP data storage and management, as well as several new utilities, including guidance in setting appropriate data filters. Availability and implementationThe SambaR source script, manual and example datasets are distributed through GitHub: https://github.com/mennodejong1986/SambaR
- Citations
- 101
- FWCI
- 8.62
- Field percentile
- top 1%
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
- tidypopgen: Tidy Population Genetics in R
Evelyn J. Carter, Eirlys E. Tysall, … Andrea Manica·Methods in Ecology and EvolutionPeer-reviewed·Dec 8, 2025
- genomalicious: serving up a smorgasbord of R functions for performing and teaching population genomic analyses
Joshua A. Thia·bioRxiv·Apr 22, 2024
- BITE: an R package for biodiversity analyses
Marco Milanesi, Stefano Capomaccio, … Licia Colli·bioRxiv·Aug 29, 2017
- snputils: A High-Performance Python Library for Genetic Variation and Population Structure
David Bonet, M Cara, … Alexander G. Ioannidis·bioRxiv·Mar 3, 2026
- sangeranalyseR: simple and interactive analysis of Sanger sequencing data in R
Kuan-Hao Chao, Kirston Barton, … Robert Lanfear·Genome Biology and EvolutionPeer-reviewed·Feb 15, 2021
- Analytical and computational solution for the estimation of SNP-heritability in biobank-scale and distributed datasets
Guo‐An Qi, Qi-Xin Zhang, … Guo‐Bo Chen·PLoS Computational BiologyPeer-reviewed·Oct 21, 2025