mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
replace regex with fixed extensions
This commit is contained in:
parent
94733a85c0
commit
f48790a728
1 changed files with 4 additions and 6 deletions
|
@ -12,8 +12,8 @@ process BIOBAMBAM_BAMMERGE {
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("${prefix}.bam") ,emit: bam
|
tuple val(meta), path("${prefix}.bam") ,emit: bam
|
||||||
tuple val(meta), path("${indexfilename}") ,optional:true, emit: bam_index
|
tuple val(meta), path("*.bai") ,optional:true, emit: bam_index
|
||||||
tuple val(meta), path("${md5filename}") ,optional:true, emit: checksum
|
tuple val(meta), path("*.md5") ,optional:true, emit: checksum
|
||||||
path "versions.yml" ,emit: versions
|
path "versions.yml" ,emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
@ -22,8 +22,6 @@ process BIOBAMBAM_BAMMERGE {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
prefix = task.ext.prefix ?: "${meta.id}"
|
prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
indexfilename = args.contains("indexfilename=") ? (args =~ /indexfilename=([^\s]+)/)[0][1] : ""
|
|
||||||
md5filename = args.contains("md5filename=") ? (args =~ /md5filename=([^\s]+)/)[0][1] : ""
|
|
||||||
def input_string = bam.join(" I=")
|
def input_string = bam.join(" I=")
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue