CIDARLAB / knox

Full stack application for creating, combining, and storing combinatorial genetic design spaces.
BSD 3-Clause "New" or "Revised" License
11 stars 10 forks source link

Distinguish Edges with Same Source and Sink #5

Closed nroehner closed 5 years ago

nroehner commented 5 years ago

Enhance Knox's visualization of edges with the same source and sink nodes. Any ordered pair of nodes can have up to three edges from the first node to the second: an edge with an orientation of "inline", an edge with an orientation of "reverseComplement", and a blank edge (which would have orientation "none"). The link below shows some examples of how one might condense the visualization of design space graphs as they are stored by Knox. These include:

  1. Replacing a labeled edge and blank edge that have the same sink and source with a dashed edge.
  2. Replacing labeled edges with different orientations but the same sink and source with an edge that is labeled with two symbols having different orientations (instead of just one symbol as usual).

This would entail modifying the d3GraphDesignSpace endpoint ("designSpace/graph/d3") of Knox's RESTful API so that it returns the appropriate D3 representation. In addition, there may need to be modifications to how Knox's web GUI uses the D3 representation returned by a call to d3GraphDesignSpace.

https://docs.google.com/presentation/d/1BBF3KeHLVOipeEAWHTSoSlFU6eVy-r4n_Y6oT1DF7Nc/edit?usp=sharing

nroehner commented 5 years ago

Addressed by #17, which also assigns different arrow heads to blank edges to distinguish blank edge from labeled edge going in the opposite direction (source of blank edge is sink of labeled edge and vice versa).