kitchensjn / tskit_arg_visualizer

Interactive visualization method for ancestral recombination graphs
MIT License
11 stars 3 forks source link

Set labels using pandas indexing #84

Closed hyanwong closed 2 months ago

hyanwong commented 2 months ago

Fixes https://github.com/kitchensjn/tskit_arg_visualizer/issues/80. I decided to simply make a new table , indexed by "id", and set the labels into that, then move them across. This works fine, and is instant even for huge ARGs

kitchensjn commented 2 months ago

Going to treat this as a temporary solution for v0.0.2. In future versions, I want to set the id as index for the nodes table on build, but that will require reworking a few other functions like the node and edge styler.