Skip to content

Commit

Permalink
Fix not using correct profiled count (#11341)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhaoyuan authored Jan 23, 2025
1 parent 85d9327 commit f0aac9d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,15 @@ public List<GenomicDataCountItem> getMutationCountsByGeneSpecific(List<String> s
.map(Gene::getEntrezGeneId)
.toList();

List<AlterationCountByGene> alterationCountByGenes = alterationCountService.getSampleMutationGeneCounts(
Pair<List<AlterationCountByGene>, Long> alterationCountsWithProfiledTotal = alterationCountService.getSampleMutationGeneCounts(
caseIdentifiers,
Select.byValues(entrezGeneIds),
true,
false,
alterationFilter).getFirst();
alterationFilter);

List<AlterationCountByGene> alterationCountByGenes = alterationCountsWithProfiledTotal.getFirst();
Long totalProfiledCases = alterationCountsWithProfiledTotal.getSecond();

return genomicDataFilters
.stream()
Expand All @@ -184,7 +187,7 @@ public List<GenomicDataCountItem> getMutationCountsByGeneSpecific(List<String> s

int totalCount = sampleIds.size();
int mutatedCount = 0;
int profiledCount = 0;
int profiledCount = Math.toIntExact(totalProfiledCases);

if(filteredAlterationCount.isPresent()) {
mutatedCount = filteredAlterationCount.get().getNumberOfAlteredCases();
Expand Down

0 comments on commit f0aac9d

Please sign in to comment.