mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-21 18:58:16 +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' }"
|
'quay.io/biocontainers/minimap2:2.21--h5bf99c6_0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
path fasta
|
tuple val(meta), path(fasta)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
path "*.mmi" , emit: index
|
tuple val(meta), path("*.mmi"), emit: index
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
task.ext.when == null || task.ext.when
|
task.ext.when == null || task.ext.when
|
||||||
|
|
|
@ -12,11 +12,21 @@ tools:
|
||||||
documentation: https://github.com/lh3/minimap2#uguide
|
documentation: https://github.com/lh3/minimap2#uguide
|
||||||
licence: ["MIT"]
|
licence: ["MIT"]
|
||||||
input:
|
input:
|
||||||
|
- meta:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing sample information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
- fasta:
|
- fasta:
|
||||||
type: file
|
type: file
|
||||||
description: |
|
description: |
|
||||||
Reference database in FASTA format.
|
Reference database in FASTA format.
|
||||||
output:
|
output:
|
||||||
|
- meta:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing sample information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
- mmi:
|
- mmi:
|
||||||
type: file
|
type: file
|
||||||
description: Minimap2 fasta index.
|
description: Minimap2 fasta index.
|
||||||
|
|
|
@ -8,5 +8,5 @@ workflow test_minimap2_index {
|
||||||
|
|
||||||
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
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