calipho-sib / feature-viewer

Library to visualize protein sequence features in javascript using D3 - From SIB CALIPHO group; neXtProt project
http://calipho-sib.github.io/feature-viewer/examples/
Other
110 stars 31 forks source link

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

Closed cdtiwari closed 4 years ago

cdtiwari commented 8 years ago

I like this api very much. Amazing work done guys. When I see this API, i thought of using this in my project but I have slightly different approach.

As per my requirement I have to show both the sequence in sequence bar. I am passing ntsequence and drawing featuremap but after this i get another requirement to show DNA and protein(amino acid) sequence in same track.

Can you guys please help me to do this.??

definitelysean commented 7 years ago

+1

In other words, is it possible to implement a feature type which is effectively a second sequence? For example, what if you wanted the primary sequence to coding DNA, and you wanted to show the corresponding amino acid for each codon as a feature?

MatSchaeff commented 4 years ago

Thank you for your suggestion. Yes it could be interesting to have 2 different sequences displayed. Unfortunately, this option is not possible for now, and we don't have time to implement it anytime soon. However one workaround could be to create 2 instances of the feature viewer and link the mouse events between them.