Published February 12, 2026

tskit tool for reading genetic history

Unraveling the Lineage of Millions of Genomes: A New Tool for Reading Genetic History

tskit 1.0 is a software library that allows deciphering the tangled DNA history of entire populations while preserving the stability of analyses for years to come.

Biology & Neuroscience
Author: Dr. Juan Mendoza Reading Time: 10 – 15 minutes
«While working on this text, I thought about how hard it is to explain the value of infrastructure – the stuff that runs unnoticed but without which everything collapses. tskit is the foundation, and I wanted to show that stability and reliability in science are no less important than breakthrough discoveries. I wonder if readers will grasp that hiding behind the boring word «version 1.0» is a promise that protects years of their future work?» – Dr. Juan Mendoza

Imagine holding a giant library in your hands where every book is the story of a single genome. But these aren't ordinary stories. The pages of these books are shuffled, glued together, and rewritten anew because every generation creates a new version of the text by combining fragments from two parents. That is exactly how our DNA works: recombination is a natural editor that reshuffles biological code to create unique combinations. And if we want to understand how a population has evolved, we need to untangle this ball of stories.

This is precisely why Ancestral Recombination Graphs exist – complex mathematical structures that describe who inherited which piece of DNA from whom. If the genome is a text, then the Ancestral Recombination Graph is a map of how this text was assembled from previous versions. The problem is that there is a massive amount of such maps; they are convoluted and require colossal computational resources. Until recently, working with them at the level of whole populations was almost impossible.

What is an Ancestral Recombination Graph and why do we need it?

Let's start with the basics. When we talk about genealogy, we usually imagine a family tree: parents, grandparents, great-grandparents. But in genetics, everything is more complicated. Your genome is not just a blend of your two parents' genomes. It consists of multiple segments, each having its own separate history. One section of a chromosome might have come to you from a specific great-great-grandmother on your mother's side, another from a great-great-grandfather on your father's side. And for each such section, there is a unique genealogical tree.

An Ancestral Recombination Graph is a way to record all these stories simultaneously. Imagine a subway map where every line is an inheritance path for a specific genome fragment, and the stations are the points where recombination or common ancestors occurred. Such a map shows not just a single tree, but a whole forest of interconnected trees where branches intertwine and diverge.

Why do we need this? Because the history of populations is encoded in these very graphs. They show when populations split, when they mixed, which parts of the genome underwent natural selection, and which simply drifted randomly. If we know how to read these graphs, we can learn how humanity settled across the planet, how our ancestors survived ice ages, and how resistance to diseases emerged.

The Scale Problem When There is Too Much Data

The Scale Problem: When There is Too Much Data

But there's a catch. Traditional methods of storing and analyzing Ancestral Recombination Graphs do not scale. When dealing with tens of thousands of genomes and millions of DNA positions, the volume of data becomes astronomical. Imagine trying to store every possible route on a subway map for every passenger over the last hundred years – and every route is unique. Ordinary computers simply can't cope.

This is where a tool called tskit enters the game. It is not just a program, but an entire infrastructure for working with population-scale genetic data. Its key idea is simple and brilliant: instead of storing the giant, tangled graph in its entirety, tskit breaks it down into a sequence of simple trees. Each tree describes the genealogy for a small section of the genome. When recombination happens – a change in inheritance – the tree changes slightly. And tskit efficiently tracks these changes.

It is as if, instead of drawing a huge map of all possible routes, we created a navigation system that shows only the section of the map you need right now and quickly switches to the next one as you move forward.

How tskit Works From Chaos to Order

How tskit Works: From Chaos to Order

Internally, tskit uses a concept developers call the «succinct tree sequence». Essentially, this is a method of data compression. Instead of recording every genealogical tree separately (and there could be millions of them), tskit records only the changes between neighboring trees. If two adjacent sections of the genome have an almost identical inheritance history, tskit remembers only what has changed. This is roughly like a video codec that saves not every frame of a movie entirely, but only the moves between frames.

Thanks to this approach, tskit can store the genealogical history of an entire human population using just a few megabytes of memory. This isn't magic – it is smart math and algorithms optimized for biological data.

But tskit is not just a storage unit. It is also a toolkit for working with this data. You can request a local tree for any section of the genome, trace the inheritance path of a specific allele, find a common ancestor for a group of individuals, calculate genetic diversity, or detect traces of natural selection. All this is done quickly and efficiently, even on a regular laptop.

What You Can Do with tskit

The capabilities of tskit are impressive. Here are just a few examples of how researchers utilize this tool:

  • Evolution Simulation: One can create virtual populations and trace their evolution over thousands of generations, modeling mutations, recombination, migration, and selection.
  • Population History Reconstruction: By analyzing actual genomic data, it is possible to reconstruct ancient genealogies and understand how population sizes changed and when they split or mixed.
  • Searching for Signs of Selection: If a specific area of the genome was subject to strong selection, its genealogy will look different from neutral areas. tskit helps find such anomalies.
  • Studying Introgression: When populations interbreed, genes cross from one group to another. tskit allows us to identify these genome segments and understand where they came from.

What matters is that all these operations are performed not on abstract models, but on real data involving tens and hundreds of thousands of genomes. This is a qualitatively new level of analysis.

Version 1.0 The Promise of Stability for tskit

Version 1.0: The Promise of Stability

The release of tskit version 1.0 is not just another update. It is a significant milestone signaling the project's maturity. The development team has officially committed to stability: code written using tskit 1.0 will work with future versions too. Data saved in the tskit 1.0 format will remain readable. This might seem like a technical nuance, but in reality, it is critically important for science.

Why? Because science must be reproducible. If you published research results in 2024, another scientist should be able to repeat your analysis in 2034 or 2044 and get the same results. But in the world of rapidly changing software, this is difficult. Libraries update, APIs change, file formats become obsolete. Code that worked five years ago might stop working today.

The stability guarantees of tskit 1.0 solve this problem. They promise that your investment in code and data will be protected. Your analysis won't break with the next update. Your files won't become unreadable. It is as if a manufacturer guaranteed that files created in a text editor today could be opened twenty years from now – without conversion, without data loss, without surprises.

What Exactly Is Guaranteed

The tskit team has taken on several specific commitments:

  • API Stability: Functions and classes in the public API will not change without warning. If changes are necessary, a transition plan will be clearly described.
  • File Format Backward Compatibility: Files created in tskit 1.0 will be readable by all future versions. Your data will remain accessible.
  • Predictable Behavior: The core logic of operations and data structures will persist. The library will behave as you expect.

These guarantees are backed by rigorous testing procedures and a transparent versioning policy. Any change that might affect backward compatibility will be carefully documented and discussed with the user community.

tskit in Action From Simulations to Real Genomes

Tskit in Action: From Simulations to Real Genomes

One of the most common applications of tskit is working with evolutionary simulations. Programs like msprime generate virtual populations, modeling processes of mutation, recombination, and genetic drift. The results of these simulations – vast arrays of genealogical data – are naturally represented in the tskit format. This allows for quick analysis of results without wasting time on data conversion.

But tskit works not only with simulations. It is increasingly used to analyze real genomic data. There are methods that allow reconstructing Ancestral Recombination Graphs from SNP data – variations in individual DNA positions. These methods create hypotheses about what genealogical trees looked like in the past, and tskit provides an efficient way to store and analyze these hypotheses.

For example, researchers used tskit to reconstruct the detailed genealogical history of European populations. They were able to trace how genes spread across the continent, identify moments of population mixing, and even detect traces of ancient migrations that were previously known only from archaeological data.

A Simple Example: How to Fetch a Local Tree

Let's say you want to know what the genealogical tree looks like for a genome section between positions 100,000 and 200,000. With tskit, this is done in literally a few lines of code. You load the data, specify the position you are interested in, and get the tree. You can visualize it, calculate distances between samples, or find a common ancestor for a group of individuals.

This simplicity is deceptive. Behind it lies a complex infrastructure that efficiently indexes millions of trees and instantly finds the right one. But for the user, everything looks intuitive and clear. It is like using a search engine: you type a query and get a result without thinking about what is happening «under the hood».

Integration with the Scientific Tool Ecosystem

tskit does not exist in a vacuum. It is designed as part of a large ecosystem of tools for analyzing genetic data. The library has bindings for Python – one of the most popular languages in scientific computing. This means you can easily integrate tskit with other powerful tools: NumPy for numerical calculations, SciPy for statistics, Matplotlib for visualization, pandas for working with tabular data.

There is also a core library in C, which allows embedding tskit into high-performance applications. If you need maximum speed, you can write code in C or C++ and use tskit functions directly, bypassing the overhead of the Python interpreter.

This flexibility makes tskit a universal tool. A student can use it for a class project by writing a few lines in Python. And a research team can build a complex computational pipeline based on it, processing petabytes of data.

Where tskit Is Heading: Future Plans

The release of version 1.0 is not the finish line, but rather the start of a new stage of development. The team is actively working on improving performance, adding new features, and expanding integration with other tools. One direction is the interactive visualization of Ancestral Recombination Graphs. Imagine if you could not just get a tree as text or a static image, but explore it interactively: zoom, rotate, highlight branches of interest, overlay additional information.

Another important direction is further optimization for working with even larger data sets. Modern sequencing projects already work with hundreds of thousands of genomes, and in the coming years, this scale will only grow. tskit must be ready for this challenge.

There are also plans to evolve algorithms for reconstructing Ancestral Recombination Graphs from real data. This is one of the most complex tasks in population genetics, and improvements in this area could open new horizons for research.

Why tskit Matters From Code to Discoveries

Why This Matters: From Code to Discoveries

It might seem like all this is just technical fuss, interesting only to programmers. But in reality, tskit is a tool that directly influences the questions we can ask nature and the answers we can receive. Without effective ways to work with genealogical data, we wouldn't be able to reconstruct the history of human populations with the precision we do today. We wouldn't be able to find genes linked to high-altitude adaptation or disease resistance. We wouldn't be able to understand how the genetic diversity we see today was formed.

tskit is like a telescope for geneticists. It doesn't create new stars, but it allows us to see those that were previously hidden from us. It gives us the chance to look into the past and read the records that nature left in our DNA.

And crucially, tskit makes this technology accessible. You don't need a supercomputer or a multi-million dollar grant to start working with Ancestral Recombination Graphs. A regular laptop, a bit of curiosity, and a desire to understand how life works at the deepest level – the level of genetic code – are enough.

The guarantees of stability provided by version 1.0 strengthen this position. They make tskit not just an experimental tool, but a reliable infrastructure one can rely on for years. Researchers can invest time in learning the library, developers can build new applications on its basis, and students can learn to work with modern methods of population genetics, knowing that this knowledge won't become obsolete in a couple of years.

Nature is the most brilliant hacker, and she left us encrypted messages in every cell of our bodies. tskit helps us decrypt these messages, turning the chaos of genetic data into ordered stories about who we are and where we came from. It is a tool that allows us to peek at nature's decisions – and learn from her.

Original Title: Population-scale Ancestral Recombination Graphs with tskit 1.0
Article Publication Date: Feb 10, 2026
Original Article Authors : Ben Jeffery, Yan Wong, Kevin Thornton, Georgia Tsambos, Gertjan Bisschop, Yun Deng, E. Castedo Ellerman, Thomas B. Forest, Halley Fritze, Daniel Goldstein, Gregor Gorjanc, Graham Gower, Simon Gravel, Jeremy Guez, Benjamin C. Haller, Andrew D. Kern, Lloyd Kirk, Hanbin Lee, Brieuc Lehmann, Hossameldin Loay, Matthew M. Osmond, Duncan S. Palmer, Nathaniel S. Pope, Aaron P. Ragsdale, Duncan Robertson, Murillo F. Rodrigues, Hugo van Kemenade, Clemens L. Weiß, Anthony Wilder Wohns, Shing H. Zhan, Brian C. Zhang, Marianne Aspbury, Nikolas A. Baya, Saurabh Belsare, Arjun Biddanda, Francisco Campuzano Jiménez, Ariella Gladstein, Bing Guo, Savita Karthikeyan, Warren W. Kretzschmar, Inés Rebollo, Kumar Saunack, Ruhollah Shemirani, Alexis Simon, Chris Smith, Jeet Sukumaran, Jonathan Terhorst, Per Unneberg, Ao Zhang, Peter Ralph, Jerome Kelleher
Previous Article How to Turn a Neural Network into a Pile of If-Else Statements and Make It Fly Next Article When Fluid Argues with Math: Waves That Either Fade or Explode

From Research to Understanding

How This Text Was Created

This material is based on a real scientific study, not generated “from scratch.” At the beginning, neural networks analyze the original publication: its goals, methods, and conclusions. Then the author creates a coherent text that preserves the scientific meaning but translates it from academic format into clear, readable exposition – without formulas, yet without loss of accuracy.

Vivid imagery and metaphors

89%

Interdisciplinary outlook

87%

Critical thinking

91%

Neural Networks Involved in the Process

We show which models were used at each stage – from research analysis to editorial review and illustration creation. Each neural network performs a specific role: some handle the source material, others work on phrasing and structure, and others focus on the visual representation. This ensures transparency of the process and trust in the results.

1.
Gemini 2.5 Flash Google DeepMind Research Summarization Highlighting key ideas and results

1. Research Summarization

Highlighting key ideas and results

Gemini 2.5 Flash Google DeepMind
2.
Claude Sonnet 4.5 Anthropic Creating Text from Summary Transforming the summary into a coherent explanation

2. Creating Text from Summary

Transforming the summary into a coherent explanation

Claude Sonnet 4.5 Anthropic
3.
Gemini 3 Pro Preview Google DeepMind step.translate-en.title

3. step.translate-en.title

Gemini 3 Pro Preview Google DeepMind
4.
Gemini 2.5 Flash Google DeepMind Editorial Review Correcting errors and clarifying conclusions

4. Editorial Review

Correcting errors and clarifying conclusions

Gemini 2.5 Flash Google DeepMind
5.
DeepSeek-V3.2 DeepSeek Preparing Description for Illustration Generating a textual prompt for the visual model

5. Preparing Description for Illustration

Generating a textual prompt for the visual model

DeepSeek-V3.2 DeepSeek
6.
FLUX.2 Pro Black Forest Labs Creating Illustration Generating an image based on the prepared prompt

6. Creating Illustration

Generating an image based on the prepared prompt

FLUX.2 Pro Black Forest Labs

Related Publications

You May Also Like

Enter the Laboratory

Research does not end with a single experiment. Below are publications that develop similar methods, questions, or concepts.

Want to dive deeper into the world
of neuro-creativity?

Be the first to learn about new books, articles, and AI experiments
on our Telegram channel!

Subscribe