Skip to content

Commit

Permalink
test identical input and output names
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonHafner committed Jan 10, 2025
1 parent 194796e commit 1b441a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/nf-core/scds/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ process SCDS {

script:
prefix = task.ext.prefix ?: "${meta.id}"
if ("${rds}" == "${prefix}.rds") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
template 'scds.R'

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
if ("${rds}" == "${prefix}.rds") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
"""
touch ${prefix}.rds
touch ${prefix}.csv
Expand Down

0 comments on commit 1b441a1

Please sign in to comment.