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
112 stars 32 forks source link

Second sequence #38

Open kenietz opened 4 years ago

kenietz commented 4 years ago

Hi, i would like to ask couple of questions.

  1. Is there a way to get a second sequence feature? For now one add sequence through the constructor but no way to add a feature which is a sequence.

  2. How exactly the className functions in the feature? Which attributes can one affect etc? I did not find any documentation on that.

  3. Is there going to be removeFeature() ? It is going to be really useful this feature :)

Another solution is to expose the FeatureViewer object a bit more so one can write own functions.

Thank you for your work and help!

Cheers :)

MatSchaeff commented 4 years ago

Hello kenietz,

  1. For now it is not possible to display a second sequence feature. Maybe one way to do it would be to create 2 feature-viewer and link the zoom event between the 2 instances.
  2. The className is only useful for selection or to customize the style with css.
  3. I agree with you, we will probably add this function later. For now the only way is to recreate the instance.

We have a few projects going on right now, but we will work on improvements as soon as we can :)

Thank you for using this tool and for your suggestions! Cheers