Related Experiment Video
Updated: Jul 2, 2025

Heuristic Mining of Hierarchical Genotypes and Accessory Genome Loci in Bacterial Populations
Published on: December 7, 2021
kalis: a modern implementation of the Li & Stephens model for local ancestry inference in R
Louis J M Aslett1, Ryan R Christ2
1Department of Mathematical Sciences, Durham University, Stockton Road, Durham, DH1 3LE, UK. louis.aslett@durham.ac.uk.
Background:
Approximating the recent phylogeny of N phased haplotypes at a set of variants along the genome is a core problem in modern population genomics and central to performing genome-wide screens for association, selection, introgression, and other signals. The Li & Stephens (LS) model provides a simple yet powerful hidden Markov model for inferring the recent ancestry at a given variant, represented as an distance matrix based on posterior decodings.
Results:
We provide a high-performance engine to make these posterior decodings readily accessible with minimal pre-processing via an easy to use package kalis, in the statistical programming language R. kalis enables investigators to rapidly resolve the ancestry at loci of interest and developers to build a range of variant-specific ancestral inference pipelines on top. kalis exploits both multi-core parallelism and modern CPU vector instruction sets to enable scaling to hundreds of thousands of genomes.
Conclusions:
The resulting distance matrices accessible via kalis enable local ancestry, selection, and association studies in modern large scale genomic datasets.
Related Concept Videos
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...
Evolutionary Relationships through Genome Comparisons
Introduction to R
Biostatistics: Overview
Discrete variables are...
Calibration Curves: Linear Least Squares
For data that follow a straight line, the standard method for fitting is the linear...
Statistical Analysis: Overview
One of the most commonly used statistical quantifiers is the mean, which is the ratio between the sum of the numerical values of all results and the...

