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(components): gs-mutations-over-time: show 0 instead of "no data" when there are sequences but no mutation #644

Conversation

fengelniederhammer
Copy link
Collaborator

@fengelniederhammer fengelniederhammer commented Jan 9, 2025

resolves #635 case 2

Summary

Logic before:
If a certain time interval didn't have a certain mutation (corresponding to a cell in the mutations over time grid), we would leave the data empty -> It would display "no data", although we have sequences in that time interval.

Logic after:
If we have >0 sequences in a time interval, we fill up all empty grid cells with 0, because we have data, but the data doesn't have that mutation there. "no data" should only be shown when there is no data in that time interval in LAPIS (i.e. aggregated returns count 0).

-> A column of the grid will either have data in all cells or the whole column will show "no data".

Screenshot

PR Checklist

- [ ] All necessary documentation has been adapted.

  • The implemented feature is covered by an appropriate test.

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 9:23am

Copy link
Contributor

github-actions bot commented Jan 9, 2025

This is a preview of the changelog of the next release. If this branch is not up-to-date with the current main branch, the changelog may not be accurate. Rebase your branch on the main branch to get the most accurate changelog.

Note that this might contain changes that are on main, but not yet released.

Changelog:

0.11.6 (2025-01-13)

Features

  • components: gs-aggregate: add bar chart view (#639) (6d834ce)

Bug Fixes

  • components: gs-mutations-over-time: show 0 instead of "no data" when there are sequences but no mutation (#635 case 2) (74f3238)
  • components: show mutation over time tooltip below value on first six rows (89dc0f3), closes #634

@fengelniederhammer fengelniederhammer force-pushed the 635-mutations-over-time-wrongly-determined-as-no-data-case-2 branch from 666709a to 621c19b Compare January 9, 2025 15:23
Copy link
Collaborator

@JonasKellerer JonasKellerer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find.

…when there are sequences but no mutation (#635 case 2)
@fengelniederhammer fengelniederhammer force-pushed the 635-mutations-over-time-wrongly-determined-as-no-data-case-2 branch from 621c19b to 74f3238 Compare January 13, 2025 09:22
@fengelniederhammer fengelniederhammer merged commit 6067e3c into main Jan 13, 2025
7 checks passed
@fengelniederhammer fengelniederhammer deleted the 635-mutations-over-time-wrongly-determined-as-no-data-case-2 branch January 13, 2025 09:30
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.

Mutations over time: wrongly determined as "no data"?
3 participants