mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
add error is is provided twice
This commit is contained in:
parent
b5850fd471
commit
7e777c6626
1 changed files with 3 additions and 0 deletions
|
@ -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 \\
|
||||
|
|
Loading…
Reference in a new issue