kitchensjn / tskit_arg_visualizer

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

Loading JSON broken #90

Open hyanwong opened 2 months ago

hyanwong commented 2 months ago

When exporting as JSON, the title is now saved as None, whereas json requires null, so the following won't work. Also it doesn't remember the edge_type and variable_edge_width options, but I guess that's intentional?

import json
import tskit_arg_visualizer
arg_json = arg_json = json.load(open("tskit_arg_visualizer.json", "r"))
d3arg = tskit_arg_visualizer.D3ARG.from_json(json=arg_json)
d3arg.draw()
kitchensjn commented 2 months ago

Oh that's annoying. D3ARG.from_json() has been giving me trouble as we change/add new features. Two aspects of this: