-
Notifications
You must be signed in to change notification settings - Fork 0
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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)FeaturesBug Fixes |
666709a
to
621c19b
Compare
components/src/preact/mutationsOverTime/__mockData__/aminoAcidMutationsByDay.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find.
...load-of-visualization-mutations-over-time--by-week-should-match-snapshot-1-firefox-linux.txt
Outdated
Show resolved
Hide resolved
…when there are sequences but no mutation (#635 case 2)
621c19b
to
74f3238
Compare
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.