Skip to content

Commit

Permalink
Use environment TMPDIR if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
pontushojer committed Apr 12, 2021
1 parent 954b97c commit e766321
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/blr/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ rule map_sort_ema_bins:
log:
map = "{dir}/ema-bin-{bin_nr}.mapping.log",
sort = "{dir}/ema-bin-{bin_nr}.sorting.log"
params:
tmpdir = "-T $TMPDIR" if "TMPDIR" in os.environ else ""
shell:
"ema align"
" -t {threads}"
Expand All @@ -211,6 +213,7 @@ rule map_sort_ema_bins:
" -@ {threads}"
" -O bam"
" -l 0"
"{params.tmpdir}"
" -o {output.bam}"
" - 2> {log.sort}"

Expand Down

0 comments on commit e766321

Please # to comment.