From e7a543552b3fa5edfd0e72452b386c3be27c48fc Mon Sep 17 00:00:00 2001 From: Adam English Date: Sat, 28 Sep 2024 12:50:57 -0500 Subject: [PATCH] non-anchor base REPL support Replacement types get a new edge case for inclusion of regions. Happens when there aren't anchor bases added in TR callers. --- truvari/comparisons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truvari/comparisons.py b/truvari/comparisons.py index ddb8110..1b75953 100644 --- a/truvari/comparisons.py +++ b/truvari/comparisons.py @@ -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