Skip to content

Commit

Permalink
util improvement
Browse files Browse the repository at this point in the history
compress index force write, also.
  • Loading branch information
ACEnglish committed Nov 19, 2023
1 parent 546fea3 commit dedd518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truvari/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def compress_index_vcf(fn, fout=None, remove=True):
m_tmp = make_temp_filename(suffix='.vcf')
with open(m_tmp, 'w') as out_hdlr:
out_hdlr.write(bcftools.sort(fn))
pysam.tabix_compress(m_tmp, fout)
pysam.tabix_compress(m_tmp, fout, force=True)
pysam.tabix_index(fout, force=True, preset="vcf")
if remove:
os.remove(fn)
Expand Down

0 comments on commit dedd518

Please sign in to comment.