Skip to content

Commit

Permalink
functest fix
Browse files Browse the repository at this point in the history
new SV.BND messed up vcf2df results
  • Loading branch information
ACEnglish committed Jan 5, 2025
1 parent f92efe5 commit a2620d0
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2 deletions.
Binary file modified repo_utils/answer_key/vcf2df/multi_vcf2df.jl
Binary file not shown.
Binary file modified repo_utils/answer_key/vcf2df/single_vcf2df.jl
Binary file not shown.
Binary file modified repo_utils/answer_key/vcf2df/subset_vcf2df.jl
Binary file not shown.
Binary file modified repo_utils/answer_key/vcf2df/truv2df.jl
Binary file not shown.
Binary file modified repo_utils/answer_key/vcf2df/vcf2df.jl
Binary file not shown.
Binary file modified repo_utils/answer_key/vcf2df/vcf2df_bare.jl
Binary file not shown.
2 changes: 1 addition & 1 deletion truvari/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def entry_variant_type(entry):
try:
if entry.alleles_variant_types[1] == 'BND':
return truvari.SV.BND
except IndexError:
except (IndexError, AttributeError):
pass

ret_type = None
Expand Down
2 changes: 1 addition & 1 deletion truvari/vcf2df.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_svtype(svtype):
>>> truvari.get_svtype("INS")
<SV.INS: 2>
>>> truvari.get_svtype("foo")
<SV.UNK: 6>
<SV.UNK: 7>
"""
try:
return SV.__members__[svtype]
Expand Down

0 comments on commit a2620d0

Please sign in to comment.