-
Notifications
You must be signed in to change notification settings - Fork 568
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 violin plot sample filtering and counting issues #11122
Fix violin plot sample filtering and counting issues #11122
Conversation
Quality Gate passedIssues Measures |
src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewMapper.xml
Show resolved
Hide resolved
@@ -33,7 +33,7 @@ public DensityPlotData getDensityPlotData(List<ClinicalData> sampleClinicalData, | |||
result.setBins(new ArrayList<>()); | |||
|
|||
Map<String, List<ClinicalData>> clinicalDataGroupedBySampleId = sampleClinicalData.stream(). | |||
collect(Collectors.groupingBy(ClinicalData::getSampleId)); | |||
collect(Collectors.groupingBy(c -> c.getStudyId() + "_" + c.getSampleId())); |
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 may not be necessary, but since we removed the study id from the sample id for clinical data this change will keep the ids same for density plot implementation.
if (patientClinicalDataList.isEmpty()) { | ||
combinedClinicalDataList = sampleClinicalDataList; | ||
} else { | ||
// fetch samples again without the numerical clinical data filter |
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.
@onursumer can you add to comment WHY we fetch again without clinical data filter?
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.
done!
…erting patient clinical data to sample clinical data
…e ids to count samples when internal id is null
c028f13
to
079919b
Compare
* use samples filtered without numerical clinical data filter when converting patient clinical data to sample clinical data * make clinical data sample/patient ids match legacy ids, and use stable ids to count samples when internal id is null
Fix #11112