mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
Added the meta map to minimap2/index (#1934)
This commit is contained in:
parent
74b569b66a
commit
73e062cf5e
3 changed files with 14 additions and 4 deletions
|
@ -7,11 +7,11 @@ process MINIMAP2_INDEX {
|
|||
'quay.io/biocontainers/minimap2:2.21--h5bf99c6_0' }"
|
||||
|
||||
input:
|
||||
path fasta
|
||||
tuple val(meta), path(fasta)
|
||||
|
||||
output:
|
||||
path "*.mmi" , emit: index
|
||||
path "versions.yml" , emit: versions
|
||||
tuple val(meta), path("*.mmi"), emit: index
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
task.ext.when == null || task.ext.when
|
||||
|
|
|
@ -12,11 +12,21 @@ tools:
|
|||
documentation: https://github.com/lh3/minimap2#uguide
|
||||
licence: ["MIT"]
|
||||
input:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- fasta:
|
||||
type: file
|
||||
description: |
|
||||
Reference database in FASTA format.
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- mmi:
|
||||
type: file
|
||||
description: Minimap2 fasta index.
|
||||
|
|
|
@ -8,5 +8,5 @@ workflow test_minimap2_index {
|
|||
|
||||
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||
|
||||
MINIMAP2_INDEX ( fasta )
|
||||
MINIMAP2_INDEX ( [ [id:'test'], fasta ] )
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue