Skip to content

Commit

Permalink
Fix #213
Browse files Browse the repository at this point in the history
bcftools.sort is passed tempfile.gettempdir
  • Loading branch information
ACEnglish committed May 19, 2024
1 parent e10cd4d commit 7d8c496
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 @@ -431,7 +431,7 @@ def compress_index_vcf(fn, fout=None, remove=True):
fout = fn + '.gz'
m_tmp = make_temp_filename(suffix='.vcf')
with open(m_tmp, 'w') as out_hdlr:
out_hdlr.write(bcftools.sort(fn))
out_hdlr.write(bcftools.sort(fn, "--temp-dir", tempfile.gettempdir()))
pysam.tabix_compress(m_tmp, fout, force=True)
pysam.tabix_index(fout, force=True, preset="vcf")
if remove:
Expand Down

0 comments on commit 7d8c496

Please sign in to comment.