-
Notifications
You must be signed in to change notification settings - Fork 270
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
Update study links in results page query summary #2942
Conversation
samples: Pick<Sample, "sampleId" | "studyId">[], | ||
hasVirtualStudies: boolean, | ||
sampleLists?: Pick<SampleList, "category">[]) { | ||
const hasAllCaseLists = _.some(sampleLists, sampleList => sampleList.category === 'all_cases_in_study'); | ||
let studyViewFilterHash: string | undefined; | ||
if (samples.length > 0 && (hasVirtualStudies || !hasAllCaseLists)) { | ||
const sampleIdentifiers = samples.map(sample => ({ | ||
sampleId: sample.sampleId, |
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.
If we are going to remove studyIds later on in study view, we better use uniqueSampleId 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.
This is equivalent of sampleIdentifiers
in StudyViewFilter
, which doesn't support uniqueSampleIds
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.
Oh right, I misunderstood the structure. Sorry about that.
If I do a combined query and select a subset of patients, i see the wrong count in study name. I think below, the study name should be Combined Study (142 Samples) |
@kalletlak i'm pretty sure it should be yes. it's exactly the same scenario (where a user has chosen studies and then selected a case list) |
@alisman updated |
Fix cBioPortal/cbioportal#6925