File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/org/cbioportal/service/impl Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -161,12 +161,15 @@ public List<GenomicDataCountItem> getMutationCountsByGeneSpecific(List<String> s
161
161
.map (Gene ::getEntrezGeneId )
162
162
.toList ();
163
163
164
- List <AlterationCountByGene > alterationCountByGenes = alterationCountService .getSampleMutationGeneCounts (
164
+ Pair < List <AlterationCountByGene >, Long > alterationCountsWithProfiledTotal = alterationCountService .getSampleMutationGeneCounts (
165
165
caseIdentifiers ,
166
166
Select .byValues (entrezGeneIds ),
167
167
true ,
168
168
false ,
169
- alterationFilter ).getFirst ();
169
+ alterationFilter );
170
+
171
+ List <AlterationCountByGene > alterationCountByGenes = alterationCountsWithProfiledTotal .getFirst ();
172
+ Long totalProfiledCases = alterationCountsWithProfiledTotal .getSecond ();
170
173
171
174
return genomicDataFilters
172
175
.stream ()
@@ -184,7 +187,7 @@ public List<GenomicDataCountItem> getMutationCountsByGeneSpecific(List<String> s
184
187
185
188
int totalCount = sampleIds .size ();
186
189
int mutatedCount = 0 ;
187
- int profiledCount = 0 ;
190
+ int profiledCount = Math . toIntExact ( totalProfiledCases ) ;
188
191
189
192
if (filteredAlterationCount .isPresent ()) {
190
193
mutatedCount = filteredAlterationCount .get ().getNumberOfAlteredCases ();
You can’t perform that action at this time.
0 commit comments