Pushing the interactive plots feature to master #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Plots are demonstrated in https://github.com/kundajelab/tfmodisco/blob/3a0360f3ed0a65e48eda07d877478e306a835e08/examples/simulated_TAL_GATA_deeplearning/InteractiveViz_TF_MoDISco_TAL_GATA.ipynb. Seqlets comprising a motif are visualized in a tsne plot, and the user can select a subset of the seqlets (by dragging a rectangle around them on the plot) to aggregate and visualize on the fly. Good for dissecting heterogeneity within a motif. This is what it looks like:
"track_names_and_signs" refers to a list of the track names that are to be aggregated to render the middle row of the interactive plot; the sign indicates what that track will be multiplied by (I'm expecting values of either -1 or 1) prior to doing the aggregation.
On my laptop, I need to run "%matplotlib notebook" twice in order to get the plots to work, for some reason.
Note: I switched from the LassoSelector to the RectangularSelector as the latter is probably easier on the backend.