mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
Fix error messages mentioning suffix (#1190)
This commit is contained in:
parent
a6e0629e24
commit
cde237e7ce
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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} \\
|
||||
|
|
|
@ -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 \\
|
||||
|
|
|
@ -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 | \\
|
||||
|
|
|
@ -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 \\
|
||||
|
|
Loading…
Reference in a new issue