Skip to content

Commit ccd4eb2

Browse files
authored
Add missing check in bcftools annotate stub (#8525)
1 parent d7ce2bd commit ccd4eb2

File tree

1 file changed

+1
-0
lines changed
  • modules/nf-core/bcftools/annotate

1 file changed

+1
-0
lines changed

modules/nf-core/bcftools/annotate/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ process BCFTOOLS_ANNOTATE {
6969
def create_cmd = extension.endsWith(".gz") ? "echo '' | gzip >" : "touch"
7070
def create_index = extension.endsWith(".gz") && index_extension.matches("csi|tbi") ? "touch ${prefix}.${extension}.${index_extension}" : ""
7171

72+
if ("$input" == "${prefix}.${extension}") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
7273
"""
7374
${create_cmd} ${prefix}.${extension}
7475
${create_index}

0 commit comments

Comments
 (0)