Skip to content

Commit

Permalink
Adding extra meta-fields for sentieon/bwamem (#3717)
Browse files Browse the repository at this point in the history
Adding extra meta-fields for fasta and fai
  • Loading branch information
asp8200 authored Aug 10, 2023
1 parent db62459 commit 149b474
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/nf-core/sentieon/bwamem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ process SENTIEON_BWAMEM {
input:
tuple val(meta), path(reads)
tuple val(meta2), path(index)
path(fasta)
path(fasta_fai)
tuple val(meta3), path(fasta)
tuple val(meta4), path(fasta_fai)

output:
tuple val(meta), path("*.bam"), path("*.bai"), emit: bam_and_bai
Expand Down
10 changes: 10 additions & 0 deletions modules/nf-core/sentieon/bwamem/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,20 @@ input:
type: file
description: BWA genome index files
pattern: "*.{amb,ann,bwt,pac,sa}"
- meta3:
type: map
description: |
Groovy Map containing reference information.
e.g. [ id:'test', single_end:false ]
- fasta:
type: file
description: Genome fasta file
pattern: "*.{fa,fasta}"
- meta4:
type: map
description: |
Groovy Map containing reference information.
e.g. [ id:'test', single_end:false ]
- fasta_fai:
type: file
description: The index of the FASTA reference.
Expand Down
5 changes: 2 additions & 3 deletions tests/modules/nf-core/sentieon/bwamem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ workflow test_sentieon_bwamem_single_end {
]

SENTIEON_BWAINDEX ( fasta_ch )
SENTIEON_BWAMEM ( input_ch, SENTIEON_BWAINDEX.out.index, fasta_file, fasta_fai_file )
SENTIEON_BWAMEM ( input_ch, SENTIEON_BWAINDEX.out.index, fasta_ch, [[:], fasta_fai_file] )
}


Expand All @@ -51,6 +51,5 @@ workflow test_sentieon_bwa_mem_paired_end {
]

SENTIEON_BWAINDEX ( fasta_ch )
SENTIEON_BWAMEM ( input_ch, SENTIEON_BWAINDEX.out.index, fasta_file, fasta_fai_file )

SENTIEON_BWAMEM ( input_ch, SENTIEON_BWAINDEX.out.index, fasta_ch, [[:], fasta_fai_file] )
}

0 comments on commit 149b474

Please sign in to comment.