sequenceTubeMap icon indicating copy to clipboard operation
sequenceTubeMap copied to clipboard

Obtain visualization on the command line

Open ekg opened this issue 7 years ago • 2 comments

Is it possible to generate the sequence tube map in a standalone way on the command line?

ekg avatar Oct 24 '17 09:10 ekg

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.

wolfib avatar Nov 02 '17 21:11 wolfib

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.

adamnovak avatar Mar 09 '21 01:03 adamnovak

If it existed, I would definitely use the CLI to generate SVGs!

chenhijy avatar Oct 11 '24 16:10 chenhijy