mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
bugfixes
This commit is contained in:
parent
6723ca7f90
commit
b35264e919
3 changed files with 4 additions and 6 deletions
|
@ -20,7 +20,6 @@ process BAMTOOLS_SPLIT {
|
|||
|
||||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
def args2 = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def input_list = bam.collect{"-in $it"}.join(' ')
|
||||
if (bam_list) {
|
||||
|
@ -30,9 +29,8 @@ process BAMTOOLS_SPLIT {
|
|||
"""
|
||||
bamtools merge \\
|
||||
${input_list} \\
|
||||
$args \\
|
||||
bamtools split \\
|
||||
$args2
|
||||
| bamtools split \\
|
||||
$args
|
||||
|
||||
cat <<-END_VERSIONS > versions.yml
|
||||
"${task.process}":
|
||||
|
|
|
@ -28,7 +28,7 @@ input:
|
|||
- bam_list:
|
||||
type: file
|
||||
description: |
|
||||
Input file containing bam files to merge before splitting,
|
||||
Optional input file containing bam files to merge before splitting,
|
||||
one line per file
|
||||
|
||||
output:
|
||||
|
|
|
@ -10,5 +10,5 @@ workflow test_bamtools_split {
|
|||
[ id:'test', single_end:false ], // meta map
|
||||
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ]
|
||||
|
||||
BAMTOOLS_SPLIT ( input )
|
||||
BAMTOOLS_SPLIT ( input, [] )
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue