-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
…m effect when filtering and helps to compare plots
server/src/termdb.matrix.js
Outdated
@@ -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]) { |
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.
this is map not obj. this breaks gene exp overlay
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.
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
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.
data looks like this then
data { term2sample2value: Set(0) {}, byTermId: {}, bySampleId: {} }
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.
I added a fix to avoid that error in my last commit
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.