Skip to content

Commit 59f6526

Browse files
committed
If there's only one cpu available, don't fork in vep.
1 parent fda5c5c commit 59f6526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ process variant_effect_predictor {
370370
--total_length \
371371
--canonical \
372372
--ccds \
373-
--fork "\$SLURM_JOB_CPUS_PER_NODE" \
373+
"\$( test "\$SLURM_CPUS_ON_NODE" -gt 1 && echo "--fork \$SLURM_CPUS_ON_NODE" )" \
374374
--fields Consequence,Codons,Amino_acids,Gene,SYMBOL,Feature,EXON,PolyPhen,SIFT,Protein_position,BIOTYPE \
375375
--assembly "\$ASSEMBLY" \
376376
--offline

0 commit comments

Comments
 (0)