mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +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)
|
tuple val(meta), path(bam)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("**.{bam,sam}"), emit: bam
|
tuple val(meta), path("output/**.{bam,sam}"), emit: bam
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
task.ext.when == null || task.ext.when
|
task.ext.when == null || task.ext.when
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
meta.single_end ? args += " --single-end": ""
|
def single_end = meta.single_end ? " --single-end": ""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# create directory and move all input so elprep can find and merge them before splitting
|
# create directory and move all input so elprep can find and merge them before splitting
|
||||||
|
@ -31,8 +31,9 @@ process ELPREP_SPLIT {
|
||||||
|
|
||||||
elprep split \\
|
elprep split \\
|
||||||
input \\
|
input \\
|
||||||
. \\
|
output/ \\
|
||||||
$args \\
|
$args \\
|
||||||
|
$single_end \\
|
||||||
--nr-of-threads $task.cpus \\
|
--nr-of-threads $task.cpus \\
|
||||||
--output-prefix $prefix
|
--output-prefix $prefix
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
- elprep
|
- elprep
|
||||||
- elprep/split
|
- elprep/split
|
||||||
files:
|
files:
|
||||||
- path: output/elprep/splits/test-group00001.bam
|
- path: output/elprep/output/splits/test-group00001.bam
|
||||||
- path: output/elprep/splits/test-unmapped.bam
|
- path: output/elprep/output/splits/test-unmapped.bam
|
||||||
- path: output/elprep/test-spread.bam
|
- path: output/elprep/output/test-spread.bam
|
||||||
- path: output/elprep/versions.yml
|
- path: output/elprep/versions.yml
|
||||||
|
|
Loading…
Reference in a new issue