intermine / bluegenes-protein-visualizer

MIT License
0 stars 6 forks source link

Support more color operations #15

Closed heralden closed 4 years ago

heralden commented 4 years ago

Similar to how we let the user select viewer mode, we should also give the user a dropdown to select color operations.

https://pv.readthedocs.io/en/v1.8.1/coloring.html#available-color-operations

We can start by supporting two color operations:

According to the documentation I linked above, you can change to by secondary structure by calling pv.color.bySS(), and change back to uniform with pv.color.uniform().

When we have a color legend (#11) we will need to also update the legend based on the currently active color operation. For the new by secondary structure color operation, use the colors listed in these 3 tables.

akshatbhargava123 commented 4 years ago

I'll work on this, assign to me please.

heralden commented 4 years ago

Thanks for picking this up! [=