Skip to content

Commit

Permalink
correct ECNTH calc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaudge committed Sep 30, 2024
1 parent fe4e3e9 commit 3dcbce1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public CalledHaplotypes callMutations(
}
final List<VariantContext> outputCallsWithEventCountAnnotation = outputCalls.stream()
.map(vc -> new VariantContextBuilder(vc)
.attribute(GATKVCFConstants.EVENT_COUNT_IN_HAPLOTYPE_KEY, eventCountAnnotations.containsKey(vc) ? eventCountAnnotations.get(vc): 0)
.attribute(GATKVCFConstants.EVENT_COUNT_IN_HAPLOTYPE_KEY, eventCountAnnotations.getOrDefault(vc, Collections.singletonList(0)))
.attribute(GATKVCFConstants.EVENT_COUNT_IN_REGION_KEY, potentialSomaticEventsInRegion.size()).make())
.collect(Collectors.toList());
return new CalledHaplotypes(outputCallsWithEventCountAnnotation, calledHaplotypes);
Expand Down

0 comments on commit 3dcbce1

Please sign in to comment.