Skip to content

Commit

Permalink
fix profiled counts assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed Nov 18, 2024
1 parent 715383f commit e174e46
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ public void getTotalProfiledCountsByGene() {
// AKT1 is on both testpanel1 and testpanel2 in STUDY_TCGA_PUB
var akt1TotalProfiledCountsForMutations = totalProfiledCountsForMutationsMap.stream().filter(c -> c.getHugoGeneSymbol().equals("AKT1")).findFirst();
assertTrue(akt1TotalProfiledCountsForMutations.isPresent());
assertEquals(4, akt1TotalProfiledCountsForMutations.get().getNumberOfProfiledCases().intValue());
assertEquals(5, akt1TotalProfiledCountsForMutations.get().getNumberOfProfiledCases().intValue());

// Assert the profiled counts for AKT2 CNA
// AKT2 is on testpanel2 in STUDY_TCGA_PUB
var akt2TotalProfiledCountsForCna = totalProfiledCountsForCnaMap.stream().filter(c -> c.getHugoGeneSymbol().equals("AKT2")).findFirst();
assertTrue(akt2TotalProfiledCountsForCna.isPresent());
assertEquals(3, akt2TotalProfiledCountsForCna.get().getNumberOfProfiledCases().intValue());
assertEquals(6, akt2TotalProfiledCountsForCna.get().getNumberOfProfiledCases().intValue());
// Assert the profiled counts for BRCA1 CNA
// BRCA1 is on testpanel1 in STUDY_TCGA_PUB
var brca1TotalProfiledCountsForCna = totalProfiledCountsForCnaMap.stream().filter(c -> c.getHugoGeneSymbol().equals("BRCA1")).findFirst();
Expand All @@ -180,7 +180,7 @@ public void getTotalProfiledCountsByGene() {
// AKT1 is on both testpanel1 and testpanel2 in STUDY_TCGA_PUB
var akt1TotalProfiledCountsForCna = totalProfiledCountsForCnaMap.stream().filter(c -> c.getHugoGeneSymbol().equals("AKT1")).findFirst();
assertTrue(akt1TotalProfiledCountsForCna.isPresent());
assertEquals(4, akt1TotalProfiledCountsForCna.get().getNumberOfProfiledCases().intValue());
assertEquals(8, akt1TotalProfiledCountsForCna.get().getNumberOfProfiledCases().intValue());

// Testing profiled counts on combined studies
studyViewFilter.setStudyIds(List.of(STUDY_TCGA_PUB, STUDY_GENIE_PUB));
Expand Down Expand Up @@ -234,7 +234,7 @@ public void getTotalProfiledCountsByGene() {
// AKT2 is on testpanel2 in STUDY_TCGA_PUB and testpanel4 in STUDY_GENIE_PUB
var akt2TotalProfiledCountsForCna1 = totalProfiledCountsForCnaMap1.stream().filter(c -> c.getHugoGeneSymbol().equals("AKT2")).findFirst();
assertTrue(akt2TotalProfiledCountsForCna1.isPresent());
assertEquals(4, akt2TotalProfiledCountsForCna1.get().getNumberOfProfiledCases().intValue());
assertEquals(7, akt2TotalProfiledCountsForCna1.get().getNumberOfProfiledCases().intValue());
}

@Test
Expand Down

0 comments on commit e174e46

Please sign in to comment.