Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Jan 11, 2025
2 parents d0781f0 + 624d72a commit ffe5e80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions truvari/variant_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,8 @@ def within_tree(self, tree):
Extract entry and tree boundaries to call `truvari.coords_within`
"""
qstart, qend = self.boundaries()
if self.chrom not in tree:
return False
m_ovl = tree[self.chrom].overlap(qstart, qend)
if len(m_ovl) != 1:
return False
Expand Down

0 comments on commit ffe5e80

Please sign in to comment.