Tutorials
These tutorials are longer narrative walk-throughs, each tied to a
self-contained script under examples/. They pair simulated data
(so you can reproduce the figures end-to-end without needing your own
VCF) with explanation of why the recipe is structured the way it
is, so they double as templates you can adapt to your own analyses.
For short, copy-paste-ready code snippets that show one feature at a time, see Examples instead.
Available tutorials
- Bootstrap CI on Tajima’s D under a Sweep
- Admixture Detection End-to-End
- Accessibility Masks and Windowed Diversity
- Quality-Aware Filtering: GQ, DP, MQ from VCF/VCZ
- Local PCA / lostruct
- LD Block Partitioning
- Side-by-Side: scikit-allel vs pg_gpu
- Demographic Inference with moments.LD
- Biobank-Scale Streaming from VCZ
- pg_gpu Skills Demo
Each tutorial follows the same structure:
The packaged script and one-line invocations to run it.
A short narrative of what the script demonstrates and why.
For tutorials that have a meaningful Python API beyond a single function call (e.g. lostruct), an inline code block of the same pipeline outside the script.
For end-to-end command-line workflows on real data (VCF to zarr, genome scans), see Workflows.