drivesim

module
v0.0.0-...-e0449dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2025 License: AGPL-3.0

README

Drivesim

This library and set of executables allows for generation of simulated chromosomes. The SNPs on these chromosomes have uniformly-distributed positions and binomially-distributed Illumina coverages. The particular goal of this library is to simulate the effect of a sperm distorter on allele frequencies of sperm in a carrier. The allele frequencies of a distorted chromosome should be biased, but the bias should decay with distance from the distorter.

Dependencies

The base installation requires go 1.23. Some tools, specifically those that automatically detect drift in the simulated data, require spstat package at the following URL: https://github.com/jgbaldwinbrown/spstat.

Using the library

go get github.com/jgbaldwinbrown/drivesim/pkg

Installing the CLI tools

git clone https://github.com/jgbaldwinbrown/drivesim.git
cd drivesim
go install ./cmd/drivesim
go install ./cmd/drivesim_multi

Usage

Drivesim

The Drivesim command line tool generates a simple example dataset. It can be run by simply typing drivesim after installing.

Drivesim_multi

Drivesim_multi generates the simulated data used in Baldwin-Brown et al. 2025. It can be run by typing drivesim_multi after installing.

Directories

Path Synopsis
cmd
drivesim command
drivesim_multi command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL