Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 19, 2024
1 parent 17c4872 commit 393c8ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion read_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,8 @@ def align_and_fix(
samtools = tools.samtools.SamtoolsTool()

refFastaCopy = mkstempfname('.ref_copy.fasta')
shutil.copyfile(util.file.fastas_with_sanitized_ids(refFasta, use_tmp=True).next(), refFastaCopy)
with util.file.fastas_with_sanitized_ids(refFasta, use_tmp=True) as sanitized_fastas:
shutil.copyfile(sanitized_fastas[0], refFastaCopy)

tools.picard.CreateSequenceDictionaryTool().execute(refFastaCopy, overwrite=True, JVMmemory=JVMmemory)
samtools.faidx(refFastaCopy, overwrite=True)
Expand Down

0 comments on commit 393c8ab

Please sign in to comment.