add error is is provided twice

This commit is contained in:
Matthias De Smet 2022-05-24 12:25:31 +02:00
parent b5850fd471
commit 7e777c6626

View file

@ -31,6 +31,9 @@ process MOSDEPTH {
def prefix = task.ext.prefix ?: "${meta.id}"
def reference = fasta ? "--fasta ${fasta}" : ""
def interval = bed ? "--by ${bed}" : ""
if (bed && ext.args.contains("--by")) {
exit 1, "--by can only be specified once."
}
"""
mosdepth \\