Open simonrolph opened 8 years ago
I think I understand - one drawing for the whole database?
In terms of image: Love the idea of using d3. We could make a script to run daily that saves the taxonomic data to a .json file.. the .json file will always have the same name, we can just duplicate old ones and append a timestamp in order to keep a reliable archive. We can call on this .json file to draw the tree. My only concern is that it will be a big ask to draw it to the DOM each request, so maybe looking at an alternative way (pre-rendering with the daily script) is needed.
I think it'll be a case of trying it out using the above method and improving it if needs be.
In terms of making a CSV of all the taxonomic information, that's a script we can run too.
It might make sense to have a python file that has several maintenance tasks, such as this, meta tables, SQL dump, outputting a schema... etc. So it isn't all so disjointed. It could be ran daily as a system task, or when the database has a new record.
How it might work: