Skip to content

Commit 0b057c3

Browse files
committed
Dynamically assign number of CPUs based on how many we got
1 parent 8615ea0 commit 0b057c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ process manta {
8989
"""
9090
configManta.py --normalBam bamfile --referenceFasta $params.ref_fasta --runDir testRun
9191
cd testRun
92-
./runWorkflow.py -m local -j \$SLURM_CPUS_PER_NODE
92+
./runWorkflow.py -m local -j \$SLURM_CPUS_ON_NODE
9393
mv results/variants/diploidSV.vcf.gz ../manta.vcf.gz
9494
cd ..
9595
gunzip -c manta.vcf.gz > manta.vcf
@@ -155,9 +155,9 @@ process fermikit {
155155

156156
script:
157157
"""
158-
fermi2.pl unitig -s3g -t\$SLURM_CPUS_PER_NODE -l150 -p sample sample.fq.gz > sample.mak
158+
fermi2.pl unitig -s3g -t\$SLURM_CPUS_ON_NODE -l150 -p sample sample.fq.gz > sample.mak
159159
make -f sample.mak
160-
run-calling -t\$SLURM_CPUS_PER_NODE $params.ref_fasta sample.mag.gz > calling.sh
160+
run-calling -t\$SLURM_CPUS_ON_NODE $params.ref_fasta sample.mag.gz > calling.sh
161161
bash calling.sh
162162
vcf-sort -c sample.sv.vcf.gz > fermikit.vcf
163163
bgzip -c fermikit.vcf > fermikit.vcf.gz

0 commit comments

Comments
 (0)