Draft repo for creating graph-like representations of succinct tree sequences, with user interaction
The idea would be the ability to create graph-like plots e.g. below
(code
in the sc2ts repo). The options to the plot_subgraph
function give some idea of the flexibility required (e.g. plotting mutations on edges, node IDs, etc)
Ideally, the end result would be an interactive plot within a Jupyter notebook. The user should be able to specify a tree sequence and a specified start node or nodes.
A suggested approach is that the code
One optional constraint should be to set the Y position of the notes to actual time (or log time), rather than the default "rank" The resulting plot should be interactive, allowing the user to drag points around (optionally constrained so that the y-position does not change), and to click at the end of unexpanded (dotted) branches to add more nodes to the plot (or select an existing node to remove it). The ability to use a d3js "force model" to re-layout any new graph would be very useful.
An additional useful ability would be to output the positions to a file, so that the plot can be recreated. Similarly reading in initial positions from a file would be useful.