Added the meta map to minimap2/index (#1934)

master
Matthieu Muffato 2 years ago committed by GitHub
parent 74b569b66a
commit 73e062cf5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save