mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
GATK4 SplitNCigarReads: fasta_fai_dict tuple is now split into separate input channels (#1076)
* fasta_fai_dict tuple is now split into separate input channels * fix: lint errors * fix: pytest errors * Update modules/gatk4/splitncigarreads/meta.yml * Update modules/gatk4/splitncigarreads/main.nf Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se>
This commit is contained in:
parent
b50f4e3d59
commit
691feeafdc
3 changed files with 18 additions and 10 deletions
|
@ -20,7 +20,9 @@ process GATK4_SPLITNCIGARREADS {
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(bam)
|
tuple val(meta), path(bam)
|
||||||
tuple path(fasta), path(fai), path(dict)
|
path fasta
|
||||||
|
path fai
|
||||||
|
path dict
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path('*.bam'), emit: bam
|
tuple val(meta), path('*.bam'), emit: bam
|
||||||
|
|
|
@ -24,10 +24,17 @@ input:
|
||||||
description: BAM/SAM/CRAM file containing reads
|
description: BAM/SAM/CRAM file containing reads
|
||||||
pattern: "*.{bam,sam,cram}"
|
pattern: "*.{bam,sam,cram}"
|
||||||
- fasta:
|
- fasta:
|
||||||
type: tuple of files
|
type: file
|
||||||
description: |
|
description: The reference fasta file
|
||||||
Tuple of fasta file (first), sequence dict (second) and fasta index (third)
|
pattern: "*.fasta"
|
||||||
pattern: ["*.fasta", "*.dict", "*.fai"]
|
- fai:
|
||||||
|
type: file
|
||||||
|
description: Index of reference fasta file
|
||||||
|
pattern: "*.fasta.fai"
|
||||||
|
- dict:
|
||||||
|
type: file
|
||||||
|
description: GATK sequence dictionary
|
||||||
|
pattern: "*.dict"
|
||||||
output:
|
output:
|
||||||
- bam:
|
- bam:
|
||||||
type: file
|
type: file
|
||||||
|
|
|
@ -8,10 +8,9 @@ workflow test_gatk4_splitncigarreads {
|
||||||
input = [ [ id:'test' ], // meta map
|
input = [ [ id:'test' ], // 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) ]
|
||||||
]
|
]
|
||||||
fasta = [ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||||
file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true),
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
||||||
file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
|
dict = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
|
||||||
]
|
|
||||||
|
|
||||||
GATK4_SPLITNCIGARREADS ( input, fasta )
|
GATK4_SPLITNCIGARREADS ( input, fasta, fai, dict )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue