James Kitchens

63 Followers
46 Following
71 Posts
UC Davis Population Biology Graduate Group
Websitehttps://james-kitchens.com
GitHubhttps://github.com/kitchensjn

And if you are looking for the latest version of the package or find it useful and want to make a feature request, we are actively developing the visualizer over on GitHub at https://github.com/kitchensjn/tskit_arg_visualizer.

6/6

Whether you are looking to get a better grasp on how these graphs are structured or communicating findings from your latest ARG inference project, we hope that tskit_arg_visualizer becomes a useful addition to your research toolkit!

5/6

After spending the first half of my Ph.D. hand-drawing so many ARGs in my notebooks for sparg, I wanted a method to pair alongside my research that would help me better explore these graphs.

4/6

Both views are fully interactive, giving users the ability to reposition nodes and highlight individual trees within the graph structure.

3/6

The visualizer offers two views: 1. draw() - displays the full graph (shown in A and B) and 2. draw_node() - focuses on a subgraph around a focal node, useful when ARGs are too large to view all at once (shown in C).

2/6

Excited to share our new preprint for the tskit_arg_visualizer Python package! ARGs can sometimes feel like a black box, so @yan and I have been developing a method to programmatically drawing these graphs.

🔗 https://arxiv.org/abs/2508.03958

1/6

tskit_arg_visualizer: interactive plotting of ancestral recombination graphs

Summary: Ancestral recombination graphs (ARGs) are a complete representation of the genetic relationships between recombining lineages and are of central importance in population genetics. Recent breakthroughs in simulation and inference methods have led to a surge of interest in ARGs. However, understanding how best to take advantage of the graphical structure of ARGs remains an open question for researchers. Here, we introduce tskit_arg_visualizer, a Python package for programmatically drawing ARGs using the interactive D3.js visualization library. We highlight the usefulness of this visualization tool for both teaching ARG concepts and exploring ARGs inferred from empirical datasets. Availability and implementation: The latest stable version of tskit_arg_visualizer is available through the Python Package Index (https://pypi.org/project/tskit-arg-visualizer, currently v0.1.0). Documentation and the development version of the package are found on GitHub (https://github.com/kitchensjn/tskit_arg_visualizer). Supplementary materials: Methods for creating the example ARGs seen in Figure 1 can be found in the supplementary materials.

arXiv.org

3 years (and 2 kids) later, I finally revised the manuscript:

https://www.biorxiv.org/content/10.1101/2021.07.13.452277v2

we develop a #popgen method to locate genetic ancestors from tree sequences and apply it to arabidopsis thaliana.

software is ready to be applied to any dataset with Relate trees:
https://github.com/osmond-lab/spacetrees

check out our video to learn more: https://www.youtube.com/watch?v=4itER1uEKbQ

thanks for your patience @gcbias !

Have you ever given a presentation and wished you had an #rstats or #python console right there in your slides with you? Based on a great suggestion from a webR user, Quarto Drop is a #quarto extension that adds a fullscreen interactive console and code editor directly into a #quarto reveal.js presentation. The console is powered by #wasm, using #webR or #pyodide, and can be dropped down from above or hidden away with the click of a button or a shortcut key.

https://github.com/r-wasm/quarto-drop

GitHub - r-wasm/quarto-drop: Drop down an interactive R or Python console, code editor, and plotting window from the top of your Quarto slides.

Drop down an interactive R or Python console, code editor, and plotting window from the top of your Quarto slides. - r-wasm/quarto-drop

GitHub

Excited to announce the release of version 0.0.2 of the `tskit_arg_visualizer` Python package on PyPI! This update brings functionality for handling larger ARGs, including major performance improvements (thanks to @yan) and a new Node View that shows local connections around a focal node, useful when your ARG is too large to display fully. Styling has also been overhauled, allowing for customizability in the colors and symbols used in your plots. Check it out at https://pypi.org/project/tskit-arg-visualizer/!

#tskit

tskit-arg-visualizer

Interactive visualization method for ancestral recombination graphs

PyPI
A general and efficient representation of ancestral recombination graphs

Abstract. As a result of recombination, adjacent nucleotides can have different paths of genetic inheritance and therefore the genealogical trees for a sam

OUP Academic