Skip to content

Commit

Permalink
fix dup-to-ins
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Feb 5, 2025
1 parent 7f3416b commit e3cb195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions truvari/variant_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def resolve(self, ref):

return True

def same_type(self, other, dup_to_ins=False):
def same_type(self, other):
"""
Check if self.var_type() == other.var_type() with extra handling for dup-to-ins
Expand All @@ -704,9 +704,9 @@ def same_type(self, other, dup_to_ins=False):
"""
a_type = self.var_type()
b_type = other.var_type()
if dup_to_ins and a_type == truvari.SV.DUP:
if self.params.dup_to_ins and a_type == truvari.SV.DUP:
a_type = truvari.SV.INS
if dup_to_ins and b_type == truvari.SV.DUP:
if self.params.dup_to_ins and b_type == truvari.SV.DUP:
b_type = truvari.SV.INS
return a_type == b_type

Expand Down

0 comments on commit e3cb195

Please sign in to comment.