We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ce2bd commit ccd4eb2Copy full SHA for ccd4eb2
modules/nf-core/bcftools/annotate/main.nf
@@ -69,6 +69,7 @@ process BCFTOOLS_ANNOTATE {
69
def create_cmd = extension.endsWith(".gz") ? "echo '' | gzip >" : "touch"
70
def create_index = extension.endsWith(".gz") && index_extension.matches("csi|tbi") ? "touch ${prefix}.${extension}.${index_extension}" : ""
71
72
+ if ("$input" == "${prefix}.${extension}") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
73
"""
74
${create_cmd} ${prefix}.${extension}
75
${create_index}
0 commit comments