Skip to content

Commit

Permalink
ALS-6330: Implement missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Jun 11, 2024
1 parent 7f0c5b0 commit dd89834
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ public Set<Integer> patientMaskToPatientIdSet(VariantMask patientMask) {

@Override
public VariantMask createMaskForPatientSet(Set<Integer> patientSubset) {
throw new RuntimeException("Not implemented");
VariantMask result = nodes.parallelStream()
.map(node -> node.createMaskForPatientSet(patientSubset))
.reduce(VariantMask::union)
.orElse(VariantMask.emptyInstance());
return result;
}

@Override
Expand Down

0 comments on commit dd89834

Please sign in to comment.