Skip to content

Commit 40ecdff

Browse files
committed
fixed TMPDIR to use current working directory across all processes
1 parent 63617b0 commit 40ecdff

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

modules/local/adapter_trim/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ process ADAPTER_TRIM {
1616
def fq2_base = fastq_2.toString().tokenize('.')[0]
1717
"""
1818
set -euo pipefail
19-
export TMPDIR=${task.workDir}
19+
export TMPDIR=\$PWD
2020
total_threads=${task.cpus}
2121
trim_galore \
2222
--paired \

modules/local/alignment/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ process STAR_ALIGNMENT_WASP {
1313
script:
1414
"""
1515
set -euo pipefail
16-
export TMPDIR=${task.workDir}
16+
export TMPDIR=\$PWD
1717
STAR \\
1818
--runMode alignReads \\
1919
--runThreadN ${task.cpus} \\
@@ -25,7 +25,7 @@ process STAR_ALIGNMENT_WASP {
2525
--readFilesCommand zcat \\
2626
--outSAMtype BAM SortedByCoordinate \\
2727
--outSAMunmapped Within \\
28-
--outTmpDir ${task.workDir}/_STARtmp \\
28+
--outTmpDir \$PWD/_STARtmp \\
2929
--outFileNamePrefix ${meta.sampleid}. \\
3030
--outFilterMultimapNmax 20 \\
3131
--alignSJoverhangMin 8 \\

modules/local/allele_count/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ process ALLELE_COUNT{
1313
"""
1414
set -euo pipefail
1515
16-
export TMPDIR=${task.workDir}
16+
export TMPDIR=\$PWD
1717
1818
[[ -f "${reference_fa}.fai" ]] || samtools faidx ${reference_fa}
1919

modules/local/index_genome/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ process STAR_GENOME_INDEX {
99
script:
1010
"""
1111
set -euo pipefail
12-
export TMPDIR=${task.workDir}
12+
export TMPDIR=\$PWD
1313
1414
mkdir -p STAR_INDEX
1515
@@ -18,6 +18,6 @@ process STAR_GENOME_INDEX {
1818
--genomeDir STAR_INDEX \\
1919
--genomeFastaFiles ${ref_fa} \\
2020
--sjdbGTFfile ${gtf} \\
21-
--outTmpDir ${task.workDir}/_STARgenomeTmp
21+
--outTmpDir \$PWD/_STARgenomeTmp
2222
"""
2323
}

modules/local/report/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ process REPORT {
1010

1111
script:
1212
"""
13-
export TMPDIR=${task.workDir}
13+
export TMPDIR=\$PWD
1414
multiqc --no-ai .
1515
"""
1616
}

modules/local/subset_1kgp/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ process SUBSET_1KGP_VCF {
99

1010
script:
1111
"""
12-
export TMPDIR=${task.workDir}
12+
export TMPDIR=\$PWD
1313
1414
total_threads=${task.cpus}
1515
@@ -56,7 +56,7 @@ process SUBSET_1KGP_VCF {
5656
} > list.txt
5757
5858
bcftools concat --threads \${total_threads} -f list.txt -Ou \\
59-
| bcftools sort --temp-dir ${task.workDir} -Ov -o ${meta.sampleid}.1KGP.snps.het.vcf
59+
| bcftools sort --temp-dir \$PWD -Ov -o ${meta.sampleid}.1KGP.snps.het.vcf
6060
else
6161
echo "Phased VCF dir is empty. Creating empty output files."
6262
touch ${meta.sampleid}.1KGP.snps.het.vcf

0 commit comments

Comments
 (0)