Skip to content

Commit

Permalink
pretty code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaudge committed Oct 16, 2024
1 parent d79b7cf commit c941f9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public static TreeSet<Integer> getEventStartPositions(final Collection<Haplotype
* Returns any events in the map that overlap loc, including spanning deletions and events that start at loc.
*/
public List<Event> getOverlappingEvents(final int loc) {
final List<Event> overlappingEvents = headMap(loc, true).values().stream().filter(v -> (v.getStart() >= loc || v.isTrimmedEvent()) && v.getEnd() >= loc).collect(Collectors.toList());
final List<Event> overlappingEvents = headMap(loc, true).values().stream().filter(v -> (v.getStart() >= loc || v.isTrimmedEvent()) && v.getEnd() >= loc).toList();
// if we're at the start of an insertion, exclude deletions that end here; otherwise keep everything
final Predicate<Event> filter = overlappingEvents.stream().anyMatch(Event::isSimpleInsertion) ?
v -> !(v.isSimpleDeletion() && v.getEnd() == loc) : v -> true;
Expand Down

0 comments on commit c941f9b

Please sign in to comment.