tskit 0.15.0

rust interface to tskit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# Haploid Wright-Fisher simulation

The following code simulates a haploid Wright-Fisher model.
The code is a reimplementation of an example program distributed with `tskit-c`.

In addition to `tskit`, the example uses:

* [rand]https://crates.io/crates/rand for random number generation.
* [anyhow]https://crates.io/crates/anyhow for error propagation.

```rust, noplayground, ignore
{{#include ../../examples/haploid_wright_fisher.rs:haploid_wright_fisher}}
```