Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pushing the interactive plots feature to master #62

Merged
merged 3 commits into from
Jul 9, 2020

Conversation

AvantiShri
Copy link
Collaborator

@AvantiShri AvantiShri commented Jul 9, 2020

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:

Screenshot 2020-07-09 at 1 47 12 AM

"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.

@AvantiShri AvantiShri merged commit cd53d27 into master Jul 9, 2020
@AvantiShri AvantiShri deleted the interactive_plots branch July 9, 2020 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant