Skip to content

Commit

Permalink
non-anchor base REPL support
Browse files Browse the repository at this point in the history
Replacement types get a new edge case for inclusion of regions. Happens when there aren't anchor bases added in TR callers.
  • Loading branch information
ACEnglish committed Sep 28, 2024
1 parent a1521c1 commit e7a5435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truvari/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def coords_within(qstart, qend, rstart, rend, end_within):
:rtype: bool
"""
# REPL types, probably
if qstart == rstart - 1 and qend == rend:
if (qstart == rstart - 1 or qstart == rstart) and qend == rend:
return True
if end_within:
ending = qend <= rend
Expand Down

0 comments on commit e7a5435

Please sign in to comment.