Skip to content

Commit

Permalink
Update Profiled counts to use WES count when gene panel is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Nov 6, 2024
1 parent 5ccee88 commit cace275
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ public List<AlterationCountByGene> getStructuralVariantGenes(StudyViewFilterCont
private < T extends AlterationCountByGene> List<T> populateAlterationCounts(@NonNull List<T> 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());
Expand All @@ -298,7 +297,7 @@ private < T extends AlterationCountByGene> List<T> populateAlterationCounts(@Non

int totalProfiledCount = hasGenePanelData(matchingGenePanelIds)
? profiledCountsMap.getOrDefault(hugoGeneSymbol, 0) + sampleProfileCountWithoutGenePanelData
: profiledCountWithoutGenePanelData;
: sampleProfileCountWithoutGenePanelData;

alterationCountByGene.setNumberOfProfiledCases(totalProfiledCount);

Expand Down

0 comments on commit cace275

Please sign in to comment.