tidypopgen: Tidy Population Genetics

We provide a tidy grammar of population genetics, facilitating the manipulation and analysis of data on biallelic single nucleotide polymorphisms (SNPs). 'tidypopgen' scales to very large genetic datasets by storing genotypes on disk, and performing operations on them in chunks, without ever loading all data in memory. The full functionalities of the package are described in Carter et al. (2025) <doi:10.1101/2025.06.06.658325>.

Package details

AuthorEvie Carter [aut], Eirlys Tysall [aut], Andrea Manica [aut, cre, cph] (ORCID: <https://orcid.org/0000-0003-1895-450X>), Chang Christopher [ctb] (Author of Hardy-Weinberg Equilibrium algorithm in PLINK 1.90, used in loci_hwe()), Shaun Purcell [ctb] (Author of Hardy-Weinberg Equilibrium algorithm in PLINK 1.90, used in loci_hwe()), Bengtsson Henrik [ctb] (Author of countLines in R.utils, modified for .vcf in count_vcf_variants())
MaintainerAndrea Manica <am315@cam.ac.uk>
LicenseGPL (>= 3)
Version0.3.2
URL https://github.com/EvolEcolGroup/tidypopgen https://evolecolgroup.github.io/tidypopgen/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("tidypopgen")

Try the tidypopgen package in your browser

Any scripts or data that you put into this service are public.

tidypopgen documentation built on Aug. 28, 2025, 1:08 a.m.