Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Prototype Visualization Frontend #24

Open
josiahseaman opened this issue Aug 13, 2019 · 4 comments
Open

Prototype Visualization Frontend #24

josiahseaman opened this issue Aug 13, 2019 · 4 comments
Assignees

Comments

@josiahseaman
Copy link
Member

josiahseaman commented Aug 13, 2019

Gdoc Documentation
We will need a visualization capability to be able to visualize and browse our test data sets. It would be great to start with the functionality of IVG or MoMI-G. One way of doing this would be to figure out the minimum input data required for SequenceTubemap as a service to call and render objects.

Ultimately, we'd like to see a responsive React or Angular website that talks to the Django server in stateful view windows. The first prototype could simply contact /graph/ which returns a json of the whole graph and feeds it into SequenceTubemap for rendering. In the end, we will likely rewrite SequenceTubemap from scratch in order to have control of the rendering process.

@josiahseaman
Copy link
Member Author

@subwaystation What do you need to get started on the front end?

@subwaystation
Copy link
Member

@josiahseaman This is tightly connected with #20. The general aim is to untangle the current IVG implementation into back-end and front-end. IVG's front-end already makes use of React. So,
the front-end we can keep and the back-end will be replaced by a Django solution from my side.
This is the minimum aim for the hackathon, because we have a working tool doing the job we want.

The back-end will then have to be adjusted in order to visualize a calculated haplotype block.

@josiahseaman
Copy link
Member Author

josiahseaman commented Aug 20, 2019 via email

@subwaystation
Copy link
Member

That sounds good.

In the following an example of a graph in JSON formatted to be put into IVG:

{"node": [{"sequence":"ACTG", "id":"1"}, ...], 
 "edge": [{"from":"1", "to":"2"}, ...],
 "path":[{"name":"_alt_0be379decfe598b898d0b1c4ccc7dedd039538fd_0","mapping":[{"position":{"node_id":"193"},"edit":[{"from_length":1,"to_length":1}],"rank":"266"}, ...]}
}

So your plan is to read from GFA (a whole graph, or just a subgraph?), extract the nodes, edges (I think IVG does not even use them) and the paths, format them as above, so that we can directly visualize the GFA with the current IVG implementation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants