mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
fix output glob (#1551)
This commit is contained in:
parent
538dbac98b
commit
b1749445d7
2 changed files with 9 additions and 8 deletions
|
@ -11,16 +11,16 @@ process ELPREP_SPLIT {
|
|||
tuple val(meta), path(bam)
|
||||
|
||||
output:
|
||||
tuple val(meta), path("**.{bam,sam}"), emit: bam
|
||||
tuple val(meta), path("output/**.{bam,sam}"), emit: bam
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
task.ext.when == null || task.ext.when
|
||||
|
||||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
meta.single_end ? args += " --single-end": ""
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def single_end = meta.single_end ? " --single-end": ""
|
||||
|
||||
"""
|
||||
# create directory and move all input so elprep can find and merge them before splitting
|
||||
|
@ -31,8 +31,9 @@ process ELPREP_SPLIT {
|
|||
|
||||
elprep split \\
|
||||
input \\
|
||||
. \\
|
||||
output/ \\
|
||||
$args \\
|
||||
$single_end \\
|
||||
--nr-of-threads $task.cpus \\
|
||||
--output-prefix $prefix
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- elprep
|
||||
- elprep/split
|
||||
files:
|
||||
- path: output/elprep/splits/test-group00001.bam
|
||||
- path: output/elprep/splits/test-unmapped.bam
|
||||
- path: output/elprep/test-spread.bam
|
||||
- path: output/elprep/output/splits/test-group00001.bam
|
||||
- path: output/elprep/output/splits/test-unmapped.bam
|
||||
- path: output/elprep/output/test-spread.bam
|
||||
- path: output/elprep/versions.yml
|
||||
|
|
Loading…
Reference in a new issue