diff --git a/src/main/java/org/cbioportal/service/impl/AlterationCountServiceImpl.java b/src/main/java/org/cbioportal/service/impl/AlterationCountServiceImpl.java index 0c137999aa4..fbeefff8d9c 100644 --- a/src/main/java/org/cbioportal/service/impl/AlterationCountServiceImpl.java +++ b/src/main/java/org/cbioportal/service/impl/AlterationCountServiceImpl.java @@ -285,7 +285,6 @@ public List getStructuralVariantGenes(StudyViewFilterCont private < T extends AlterationCountByGene> List populateAlterationCounts(@NonNull List alterationCounts, @NonNull StudyViewFilterContext studyViewFilterContext, @NonNull AlterationType alterationType) { - final int profiledCountWithoutGenePanelData = studyViewRepository.getTotalProfiledCountsByAlterationType(studyViewFilterContext, alterationType.toString()); var profiledCountsMap = studyViewRepository.getTotalProfiledCounts(studyViewFilterContext, alterationType.toString()); final var matchingGenePanelIdsMap = studyViewRepository.getMatchingGenePanelIds(studyViewFilterContext, alterationType.toString()); final int sampleProfileCountWithoutGenePanelData = studyViewRepository.getSampleProfileCountWithoutPanelData(studyViewFilterContext, alterationType.toString()); @@ -298,7 +297,7 @@ private < T extends AlterationCountByGene> List populateAlterationCounts(@Non int totalProfiledCount = hasGenePanelData(matchingGenePanelIds) ? profiledCountsMap.getOrDefault(hugoGeneSymbol, 0) + sampleProfileCountWithoutGenePanelData - : profiledCountWithoutGenePanelData; + : sampleProfileCountWithoutGenePanelData; alterationCountByGene.setNumberOfProfiledCases(totalProfiledCount);