Skip to content

Commit

Permalink
Avoid using MutationSet::filterBy if filterByNoSplit can also be used
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptzou committed Oct 6, 2022
1 parent d56c9f8 commit 61e91f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected static List<ValidationResult> validateUnsequencedRegion(AlignedSequenc
List<ValidationResult> results = new ArrayList<>();
for (AlignedGeneSeq<HIV2> geneSeq : alignedSequence.getAlignedGeneSequences()) {
GeneRegions<HIV2> unseqRegions = geneSeq.getUnsequencedRegions();
MutationSet<HIV2> unsequenced = geneSeq.getMutations().filterBy(mut -> mut.isUnsequenced(unseqRegions));
MutationSet<HIV2> unsequenced = geneSeq.getMutations().filterByNoSplit(mut -> mut.isUnsequenced(unseqRegions));
if (unsequenced.size() > 2) {
results.add(newValidationResult(
"unsequenced-region", unsequenced.size(),
Expand Down

0 comments on commit 61e91f7

Please sign in to comment.