mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 05:43:08 +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:
|
||||
tuple val(meta), path("${prefix}.bam") ,emit: bam
|
||||
tuple val(meta), path("${indexfilename}") ,optional:true, emit: bam_index
|
||||
tuple val(meta), path("${md5filename}") ,optional:true, emit: checksum
|
||||
tuple val(meta), path("*.bai") ,optional:true, emit: bam_index
|
||||
tuple val(meta), path("*.md5") ,optional:true, emit: checksum
|
||||
path "versions.yml" ,emit: versions
|
||||
|
||||
when:
|
||||
|
@ -22,8 +22,6 @@ process BIOBAMBAM_BAMMERGE {
|
|||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
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=")
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue