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

Scatter fix to keep same domains after filtering samples #2856

Merged
merged 9 commits into from
Feb 20, 2025

Conversation

airenzp
Copy link
Collaborator

@airenzp airenzp commented Feb 20, 2025

Description

Scatter fix to keep same scale domains after filtering samples. Misc fixes. Closes #674

Checklist

Check each task that has been performed or verified to be not applicable.

  • Tests: added and/or passed unit and integration tests, or N/A
  • Todos: commented or documented, or N/A
  • Notable Changes: updated release.txt, prefixed a commit message with "fix:" or "feat:", added to an internal tracking document, or N/A

@@ -161,11 +161,11 @@ async function getSampleData(q, ds, onlyChildren = false) {
filter0: q.filter0
}
const data = await q.ds.queries[tw.term.type].get(args)
for (const sampleId in data.term2sample2value.get(tw.term.name)) {
for (const sampleId in data.term2sample2value[tw.term.name]) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is map not obj. this breaks gene exp overlay

Copy link
Collaborator Author

@airenzp airenzp Feb 20, 2025

Choose a reason for hiding this comment

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

Fixed now. Some how I got confused trying to fix a gene expression scatter. Here it is the error I see adding a gender filter here
Screenshot 2025-02-20 at 4 56 53 PM

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

data looks like this then

data { term2sample2value: Set(0) {}, byTermId: {}, bySampleId: {} }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a fix to avoid that error in my last commit

@xzhou82 xzhou82 merged commit 2e93e35 into master Feb 20, 2025
3 checks passed
@xzhou82 xzhou82 deleted the scatter-zoom-fix branch February 20, 2025 23:40
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.

2 participants