Skip to content

Commit

Permalink
Fix not using correct profiled count
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhaoyuan committed Jan 17, 2025
1 parent 7ad228b commit 811a7e8
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 811a7e8

Please sign in to comment.