DnaFeaturesViewer icon indicating copy to clipboard operation
DnaFeaturesViewer copied to clipboard

support for interactive plot?

Open YichaoOU opened this issue 4 years ago • 2 comments

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

YichaoOU avatar Jun 29 '20 22:06 YichaoOU

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

veghp avatar Jun 30 '20 11:06 veghp

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.

Zulko avatar Jun 30 '20 12:06 Zulko