Fix error messages mentioning suffix (#1190)

This commit is contained in:
Jose Espinosa-Carrasco 2021-12-23 18:22:07 +01:00 committed by GitHub
parent a6e0629e24
commit cde237e7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ process LAST_POSTMASK {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
if( "$maf" == "${prefix}.maf.gz" ) error "Input and output names are the same, use the suffix option to disambiguate"
if( "$maf" == "${prefix}.maf.gz" ) error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
"""
last-postmask $args $maf | gzip --no-name > ${prefix}.maf.gz

View file

@ -19,7 +19,7 @@ process PLINK_EXTRACT {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
if( "$bed" == "${prefix}.bed" ) error "Input and output names are the same, use the suffix option to disambiguate"
if( "$bed" == "${prefix}.bed" ) error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
"""
plink \\
--bfile ${meta.id} \\

View file

@ -22,7 +22,7 @@ process PMDTOOLS_FILTER {
def args3 = task.ext.args3 ?: ''
def split_cpus = Math.floor(task.cpus/2)
def prefix = task.ext.prefix ?: "${meta.id}"
if ("$bam" == "${prefix}.bam") error "[pmdtools/filter] Input and output names are the same, use the suffix option to disambiguate!"
if ("$bam" == "${prefix}.bam") error "[pmdtools/filter] Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
//threshold and header flags activate filtering function of pmdtools
"""
samtools \\

View file

@ -19,7 +19,7 @@ process SAMBLASTER {
def args2 = task.ext.args2 ?: ''
def args3 = task.ext.args3 ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
if( "$bam" == "${prefix}.bam" ) error "Input and output names are the same, use the suffix option to disambiguate"
if( "$bam" == "${prefix}.bam" ) error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
"""
samtools view -h $args2 $bam | \\
samblaster $args | \\

View file

@ -17,7 +17,7 @@ process SAMTOOLS_FIXMATE {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
if ("$bam" == "${prefix}.bam") error "Input and output names are the same, use the suffix option to disambiguate!"
if ("$bam" == "${prefix}.bam") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
"""
samtools \\