Interactive visualization method for ancestral recombination graphs
Project description
Code for above image here.
A method for drawing ancestral recombination graphs from tskit tree sequences in Python using D3.js. ARGs are plotted using a D3's force layout. All nodes have a fixed position on the y-axis set by fy. Sample nodes have a fixed position on the x-axis set by fx; the ordering of the sample nodes comes from the first tree in the tskit tree sequence (this is not always the optimal ordering but is generally a good starting point for plotting). The x positions of other nodes are set by a force simulation where all nodes repel each other countered by a linkage force between connected nodes in the graph.
Users can click and drag the nodes (including the sample) along the x-axis to further clean up the layout of the graph. The simulation does not take into account line crosses, which can often be improved with some fiddling. Once a node has been moved by a user, its position is fixed with regards to the force simulation.
See tutorial.md for a walkthrough of the package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tskit_arg_visualizer-0.1.2.tar.gz.
File metadata
- Download URL: tskit_arg_visualizer-0.1.2.tar.gz
- Upload date:
- Size: 16.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
674eda299455e883c75f8c6591a7f34f796f02796f8f7de279f04209f444bc3e
|
|
| MD5 |
995b7352e3b17e531ef074bc4b1f62a0
|
|
| BLAKE2b-256 |
f0fe11e14d369637dae9b487faf46d83665ada2159939dc5aa502e6b573ee44e
|
File details
Details for the file tskit_arg_visualizer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tskit_arg_visualizer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4ef0c9211b5128d25e08c17dc691050c1744d8d358e0574a748f2880630378c
|
|
| MD5 |
21ef9a8315a9302d6c1d38789c68b43d
|
|
| BLAKE2b-256 |
2acf7fba5e810b811d2d663892c6ff05e75d91fa1de8da0387d17b3453376e79
|