Skip to content

Commit

Permalink
fix bug w/ running input FASTAs w/o any --reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelzer committed Mar 6, 2022
1 parent 6544492 commit 719d94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/prokka.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ process prokka {
script:
"""
# this might be dangerous if the user provides some empty file and THINKS he provided some decent GBK file: this will still work w/o letting the user know
if [ -s ${reference} ]; then
if [[ -s ${reference} && \$(cat ${reference}) != 'null' ]]; then
prokka --gcode ${params.gcode} --cpus ${task.cpus} --outdir ${name} --prefix ${name} --proteins ${reference} ${fasta}
else
prokka --gcode ${params.gcode} --cpus ${task.cpus} --outdir ${name} --prefix ${name} ${fasta}
Expand Down

0 comments on commit 719d94d

Please sign in to comment.