Skip to main content

๐Ÿ‘‹ Welcome to krsim

Malaria transmission simulator

A forward simulator that brings together malaria modelling and population genetics to model parasite transmission. Whole-genome information is tracked through every recombination event as an ancestral recombination graph, stored efficiently with tskit. From the recorded genealogy (a tree sequence), krsim overlays mutations and outputs coalescence times across the genome and VCF files at the strain level and at the (observed) host level.

TipGet started

Install krsim, then start with the quick start.

Pipeline

krsim runs as a series of commands. Each one reads the files written by an earlier stage and writes new ones.

The krsim pipeline: simulate writes the tree sequence and hostโ€“strain map; mutate adds mutations; coal-mut writes coalescence and mutation times; vcf-strain writes the strain VCF; vcf-host-depth combines it with the hostโ€“strain map into the host VCF, with realistic read depth.

Each grey box is a krsim command, and the files inside its dashed outline are the ones it writes. Arrows show which files each command reads. Every command also records what it did in KR_sim_{seed}.log in its --output_dir.

See the command-line reference for every option and Output files for what each file contains.