Skip to content

Commit

Permalink
Alter FilterReport for InheritanceModeFilter to state results show th…
Browse files Browse the repository at this point in the history
…e number of variants, not genes.
  • Loading branch information
julesjacobsen committed Jan 31, 2024
1 parent e356afc commit 83bb039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private List<String> messages(InheritanceFilter inheritanceFilter) {
.map(ModeOfInheritance::toString)
.collect(Collectors.joining(", "));

return List.of(String.format("Genes filtered for compatibility with %s inheritance.", inheritanceModes));
return List.of(String.format("Variants filtered for compatibility with %s inheritance.", inheritanceModes));
}

private List<String> messages(PriorityScoreFilter priorityScoreFilter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public void testMakeInheritanceFilterReport() {
Filter filter = new InheritanceFilter(ModeOfInheritance.AUTOSOMAL_DOMINANT, ModeOfInheritance.AUTOSOMAL_RECESSIVE);
FilterType filterType = FilterType.INHERITANCE_FILTER;

ImmutableList<String> messages = ImmutableList.of("Genes filtered for compatibility with AUTOSOMAL_DOMINANT, AUTOSOMAL_RECESSIVE inheritance.");
ImmutableList<String> messages = ImmutableList.of("Variants filtered for compatibility with AUTOSOMAL_DOMINANT, AUTOSOMAL_RECESSIVE inheritance.");
FilterReport report = new FilterReport(filterType, 0, 0, messages);

FilterReport result = instance.makeFilterReport(filter, analysisResults);
Expand Down

0 comments on commit 83bb039

Please sign in to comment.