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

Fix initially blank mutations #177

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

benjeffery
Copy link
Member

@savitakartik The page seems to still work without filtering the points in the datashade, which was causing them all to get filtered initially. Do you know if it was needed?

@coveralls
Copy link

coveralls commented Sep 26, 2024

Pull Request Test Coverage Report for Build 11180038052

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 83.172%

Totals Coverage Status
Change from base Build 11179721596: 0.2%
Covered Lines: 771
Relevant Lines: 927

💛 - Coveralls

@benjeffery benjeffery changed the title Fix blank initially blank mutations Fix initially blank mutations Sep 26, 2024
@savitakartik
Copy link
Collaborator

The filter was being used because we only wanted hover tool tips to be displayed if there were less than a certain number of points in the viewport.

@savitakartik
Copy link
Collaborator

savitakartik commented Sep 26, 2024

Hmm, interesting. I'm seeing a blank mutations panel with or without the filter. I'll check again and share some screenshots tomorrow.

@savitakartik
Copy link
Collaborator

Here's what I see when I try this PR on simulated trees. I still have the initial blank screen problem with all datashaded/filtered plots (Mutations, Nodes and Edges). But when I refresh the plot, the problem persists only in Mutations. Same as what I was seeing before. I'll open issues.

fix-blank-muts-branch_mutations_panel.mp4

@benjeffery
Copy link
Member Author

benjeffery commented Sep 27, 2024

Note that this PR only changes mutations - here's the same on my machine:

Peek.2024-09-27.11-35.mp4

What versions are you running? I'm:

panel==1.4.5
bokeh==3.4.3
holoviews==1.19.1

@savitakartik
Copy link
Collaborator

savitakartik commented Sep 27, 2024

Note that this PR only changes mutations - here's the same on my machine:

Peek.2024-09-27.11-35.mp4
What versions are you running? I'm:

panel==1.4.5
bokeh==3.4.3
holoviews==1.19.1

Thanks, Ben. I'm running the same versions of these packages as you are!

Great, so it looks like this fix could be applied to Nodes and Edges too, which also use filtering. I was just trying to diagnose the issue with Mutations as I can't see that plot at all! It looks like that's a separate issue only on my machine. Would you mind sharing a clip with hover in the initial plot, and then after zooming in till the points are coloured by number of inheritors? The intention with the filter/hover functions was to overlay a colour-by plot of the actual data points and activate hover only when zoomed in to a certain level. I'm not able to verify that that still works! I suppose one option would be to scrap that feature entirely.

@benjeffery benjeffery force-pushed the fix-blank-muts branch 5 times, most recently from d5bdff7 to 108a65f Compare October 3, 2024 12:25
@jeromekelleher
Copy link
Member

How do we view the uploaded artefacts @benjeffery?

@benjeffery benjeffery force-pushed the fix-blank-muts branch 4 times, most recently from 7053fed to 4e8cf06 Compare October 4, 2024 11:40
@tskit-dev tskit-dev deleted a comment from github-actions bot Oct 4, 2024
github-actions bot pushed a commit that referenced this pull request Oct 4, 2024
Copy link

github-actions bot commented Oct 4, 2024

Automated Screenshots

These screenshots are automatically updated as the PR changes.

Click to view screenshots

out_edges.png

out_edges.png

out_mutations.png

out_mutations.png

out_nodes.png

out_nodes.png

github-actions bot pushed a commit that referenced this pull request Oct 4, 2024
@tskit-dev tskit-dev deleted a comment from github-actions bot Oct 4, 2024
@benjeffery
Copy link
Member Author

How do we view the uploaded artefacts @benjeffery?

They should be viewable here: #177 (comment)

github-actions bot pushed a commit that referenced this pull request Oct 4, 2024
@benjeffery benjeffery merged commit 61d35d2 into tskit-dev:main Oct 4, 2024
5 checks passed
This was referenced Oct 4, 2024
@jeromekelleher
Copy link
Member

Amazing!

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.

4 participants