File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff 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 \\
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments