mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +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
|
@ -11,10 +11,10 @@ process BIOBAMBAM_BAMMERGE {
|
|||
tuple val(meta), path(bam)
|
||||
|
||||
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
|
||||
path "versions.yml" ,emit: versions
|
||||
tuple val(meta), path("${prefix}.bam") ,emit: bam
|
||||
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:
|
||||
task.ext.when == null || task.ext.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