BMC BioinformaticsBioinformaticsPeer-reviewed journal article
vcfsim: flexible simulation of all-sites VCFs with missing data
Abstract
BackgroundVCFs are the most widely used data format for encoding genetic variation. By design, standard VCFs do not include data from sites where all individuals are homozygous for the reference allele ("invariant sites") and thus do not differentiate these from sites where data are completely missing. However, missing data are a key feature of biological datasets across all domains of genomics, and many recent studies have shown that missing data can introduce a variety of statistical biases in the estimation of key population genetic parameters. A solution to this limitation is to include invariant sites in a standard VCF, creating an "all-sites VCF", exposing missing and invariant sites explicitly. One hurdle to the wider adoption of all-sites VCFs is a reliable parameterized simulation framework for generating biologically realistic all-sites VCFs. ResultsHere, we introduce an open-source command line tool, vcfsim, that interfaces with the popular coalescent simulation platform msprime and provides convenience functions for simulating all-sites VCFs with variable levels of ploidy and missing data. We show that the post-processed VCFs generated using vcfsim align precisely with population genetic expectations (i.e. are statistically identical to raw msprime output), accurately introduce missing data, and permit the simulation of data with varying ploidy levels, including the simulation of intraindividual ploidy variation (e.g. heterogametic sex chromosomes) and population structures. ConclusionsOur results vcfsim is a useful and easy-to-use tool for the benchmarking of new software tools, performing population genetic inference, training of machine learning models, and the exploration of the effects of missing data in genomics data sets.
- assay: whole-exome sequencing
- assay: whole-genome sequencing
- research focus: benchmarking
- research focus: variant calling
- research focus: variant effect prediction
- approach: simulation
- Citations
- 2
- FWCI
- 8.01
- Field percentile
- top 5%
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
- vcferr: Development, Validation, and Application of a SNP Genotyping Error Simulation Framework
VP Nagraj, Matthew B. Scholz, … Stephen Turner·bioRxiv·Mar 28, 2022
- vcfgl: A flexible genotype likelihood simulator for VCF/BCF files
Isin Altinkaya, Rasmus Nielsen, Thorfinn Sand Korneliussen·BioinformaticsPeer-reviewed·Mar 5, 2025
- GenoSim: A Forward-Time Genotype Simulator for Clinical and Population Genetics with Population Stratification
Abu Bakar, Rutaba Gul, … Saad Serfraz·bioRxiv·Jul 23, 2026
- Coupling Wright-Fisher and coalescent dynamics for realistic simulation of population-scale datasets
D. Nelson, J. Kelleher, … S. Gravel·bioRxiv·Jun 18, 2019
- EGGS: Empirical Genotype Generalizer for Samples
T. C. Smith, Amatur Rahman, Zachary A. Szpiech·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- SVEngine: an efficient and versatile simulator of genome structural variations with features of cancer clonal evolution
Li Charlie Xia, Dongmei Ai, … Hanlee P. Ji·GigaSciencePeer-reviewed·Jul 1, 2018