calipho-sib / sequence-viewer

neXtProt protein sequence viewer (javascript) - From SIB CALIPHO group; neXtProt project
https://cdn.rawgit.com/calipho-sib/sequence-viewer/master/examples/index.html
50 stars 18 forks source link

How can we show DNA and Protein Sequence together?? #7

Open cdtiwari opened 8 years ago

cdtiwari commented 8 years ago

Dear Team,

I really love your efforts. It is really amazing. I am planning to use your efforts in one of my inhouse project. Here I would like to ask, If i wanted to show two sequence at a time(DNA & Protein). How can i make it. Is there any way to add both? I would like to request for sharing documentation of code, So I can try this feature to implement.

MatSchaeff commented 8 years ago

Hello Chandra,

Currently there is no way to display overlapping sequences in the same instance of a sequence-viewer. You will have to create 2 instances, so 2 different blocks..

But that's an interesting idea. I'm currently pretty busy on others projects, but I will try to take a look when i have more time. Meanwhile you can try to implement it on your own, and i will be happy to look at your pull request :)

Displaying 2 sequences shouldn't be a problem. (The display of a raw sequence is done in the render function). However applying the features (as highlight, coverage or listeners,..) on both sequences might get a bit difficult.

Cheers,

Mathieu