Skip to content

Commit

Permalink
add error if no target found
Browse files Browse the repository at this point in the history
  • Loading branch information
photocyte committed Jun 22, 2022
1 parent 949c7d3 commit f553a44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions primer3.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ output:
shell:
'''
seqkit locate -i --gtf -p "!{seq}" !{fasta} > target.gtf
seqkit subseq --gtf target.gtf -u 500 -d 500 !{fasta} > target.fa
if [[ ! -s target.gtf ]]
then
exit 7
fi
'''
}

Expand Down

0 comments on commit f553a44

Please sign in to comment.