Skip to content

Commit

Permalink
Fix GenomicDataFilterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dippindots committed Sep 12, 2024
1 parent 33df3db commit a415fa2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void getCNACounts() {
studyViewFilter.setStudyIds(List.of(STUDY_TCGA_PUB));

GenomicDataFilter genomicDataFilterCNA = new GenomicDataFilter("AKT1", "cna");
List<GenomicDataCountItem> actualCountsCNA = studyViewMapper.getCNACounts(StudyViewFilterHelper.build(studyViewFilter, null), List.of(genomicDataFilterCNA));
List<GenomicDataCountItem> actualCountsCNA = studyViewMapper.getCNACounts(StudyViewFilterHelper.build(studyViewFilter, null, null), List.of(genomicDataFilterCNA));
List<GenomicDataCountItem> expectedCountsCNA = List.of(
new GenomicDataCountItem("AKT1", "cna", List.of(
new GenomicDataCount("Homozygously deleted", "-2", 2),
Expand All @@ -58,7 +58,7 @@ public void getCNACounts() {
.isEqualTo(expectedCountsCNA);

GenomicDataFilter genomicDataFilterGISTIC = new GenomicDataFilter("AKT1", "gistic");
List<GenomicDataCountItem> actualCountsGISTIC = studyViewMapper.getCNACounts(StudyViewFilterHelper.build(studyViewFilter, null), List.of(genomicDataFilterGISTIC));
List<GenomicDataCountItem> actualCountsGISTIC = studyViewMapper.getCNACounts(StudyViewFilterHelper.build(studyViewFilter, null, null), List.of(genomicDataFilterGISTIC));
List<GenomicDataCountItem> expectedCountsGISTIC = List.of(
new GenomicDataCountItem("AKT1", "gistic", List.of(
new GenomicDataCount("Homozygously deleted", "-2", 2),
Expand All @@ -80,7 +80,7 @@ public void getMutationCounts() {
studyViewFilter.setStudyIds(List.of(STUDY_TCGA_PUB));

GenomicDataFilter genomicDataFilterMutation = new GenomicDataFilter("AKT1", "cna");
Map<String, Integer> actualMutationCounts = studyViewMapper.getMutationCounts(StudyViewFilterHelper.build(studyViewFilter, null), genomicDataFilterMutation);
Map<String, Integer> actualMutationCounts = studyViewMapper.getMutationCounts(StudyViewFilterHelper.build(studyViewFilter, null, null), genomicDataFilterMutation);
Map<String, Integer> expectedMutationCounts = new HashMap<>();
expectedMutationCounts.put("mutatedCount", 2);
expectedMutationCounts.put("notMutatedCount", 2);
Expand All @@ -97,7 +97,7 @@ public void getMutationCountsByType() {
studyViewFilter.setStudyIds(List.of(STUDY_TCGA_PUB));

GenomicDataFilter genomicDataFilterMutation = new GenomicDataFilter("AKT1", "mutation");
List<GenomicDataCountItem> actualMutationCountsByType = studyViewMapper.getMutationCountsByType(StudyViewFilterHelper.build(studyViewFilter, null), List.of(genomicDataFilterMutation));
List<GenomicDataCountItem> actualMutationCountsByType = studyViewMapper.getMutationCountsByType(StudyViewFilterHelper.build(studyViewFilter, null, null), List.of(genomicDataFilterMutation));
List<GenomicDataCountItem> expectedMutationCountsByType = List.of(
new GenomicDataCountItem("AKT1", "mutations", List.of(
new GenomicDataCount("nonsense mutation", "nonsense_mutation", 1, 1),
Expand Down

0 comments on commit a415fa2

Please sign in to comment.