sequenceTubeMap
sequenceTubeMap copied to clipboard
Obtain visualization on the command line
Is it possible to generate the sequence tube map in a standalone way on the command line?
I have thought about this idea a bit in the past. I think this should be doable in principle.
I'm using d3.js and the browser for drawing the svg, but I believe there is a way to use d3 with node and have it generate an svg file.
As my time is limited at the moment, I have no immediate plan to explore this further.
Now that we have the React tests in here, I've had to port the whole system to be able to run on top of jsdom
, which means it would be feasible to let the tube map construct an SVG in a Node process.
I had to fake some of the text length estimation code, but we could polyfill that.
The easiest thing to start with would be a CLI tool you can pipe into from vg chunk. We could also have a script that pulls in bits of the server and the client and takes a vg file to invoke chunking on itself, and then renders based on that.
If it existed, I would definitely use the CLI to generate SVGs!