Edinburgh-Genome-Foundry / DnaFeaturesViewer

:eye: Python library to plot DNA sequence features (e.g. from Genbank files)
https://edinburgh-genome-foundry.github.io/DnaFeaturesViewer/
MIT License
584 stars 90 forks source link

support for interactive plot? #37

Open YichaoOU opened 4 years ago

YichaoOU commented 4 years ago

Hello!

Great tool! I want to integrate it into a dash application. Is it easy to convert the static plot into an interactive plot, like using plotly?

Thanks, Yichao

veghp commented 4 years ago

Thank you, I have not used plotly or dash before, but DNA Features Viewer uses matplotlib and perhaps these links will help: SO Question, https://github.com/plotly/dash/issues/250

Zulko commented 4 years ago

There is also Bokeh support in the DNA Features Viewer, which provides some interactive plots, although the features are limited. It basically uses the matplotlib plot to understand the vertical levels on which the different annotations are laid out, then converts them into interactive bokeh annotations. This could also be a good model for making a plotly plot.