mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Update samtools view to add input path(index) (#1539)
* feat added index as input, to allow module to be used for subsampling * fix test * feat added index to meta.yml * Update modules/samtools/view/meta.yml feat corrected description of idea pattern file in meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
This commit is contained in:
parent
f4c69bc427
commit
12afb6b0fa
3 changed files with 9 additions and 4 deletions
|
@ -8,7 +8,7 @@ process SAMTOOLS_VIEW {
|
||||||
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(input)
|
tuple val(meta), path(input), path(index)
|
||||||
path fasta
|
path fasta
|
||||||
|
|
||||||
output:
|
output:
|
||||||
|
|
|
@ -25,6 +25,10 @@ input:
|
||||||
type: file
|
type: file
|
||||||
description: BAM/CRAM/SAM file
|
description: BAM/CRAM/SAM file
|
||||||
pattern: "*.{bam,cram,sam}"
|
pattern: "*.{bam,cram,sam}"
|
||||||
|
- index:
|
||||||
|
type: optional file
|
||||||
|
description: BAM.BAI/CRAM.CRAI file
|
||||||
|
pattern: "*.{.bai,.crai}"
|
||||||
- fasta:
|
- fasta:
|
||||||
type: optional file
|
type: optional file
|
||||||
description: Reference file the CRAM was created with
|
description: Reference file the CRAM was created with
|
||||||
|
|
|
@ -6,7 +6,8 @@ include { SAMTOOLS_VIEW } from '../../../../modules/samtools/view/main.nf'
|
||||||
|
|
||||||
workflow test_samtools_view {
|
workflow test_samtools_view {
|
||||||
input = [ [ id:'test', single_end:false ], // meta map
|
input = [ [ id:'test', single_end:false ], // meta map
|
||||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true),
|
||||||
|
[]
|
||||||
]
|
]
|
||||||
|
|
||||||
SAMTOOLS_VIEW ( input, [] )
|
SAMTOOLS_VIEW ( input, [] )
|
||||||
|
|
Loading…
Reference in a new issue