Skip to content

Commit

Permalink
add the bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 19, 2024
1 parent 67af862 commit 9a79e8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/samtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ def faidx(self, inFasta, overwrite=False):
else:
return
#pysam.faidx(inFasta)
self.execute('faidx', [inFasta])
with util.file.fastas_with_sanitized_ids(inFasta, use_tmp=True) as sanitized_fastas:
sanitized_fasta = sanitized_fastas[0]
self.execute('faidx', [sanitized_fasta])
shutil.copyfile(sanitized_fasta + '.fai', outfname)

def depth(self, inBam, outFile, options=None):
""" Write a TSV file with coverage depth by position """
Expand Down

0 comments on commit 9a79e8a

Please sign in to comment.