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

This commit is contained in:
Matthieu Muffato 2022-09-08 09:27:14 +01:00 committed by GitHub
parent 74b569b66a
commit 73e062cf5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 deletions

View file

@ -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

View file

@ -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.

View file

@ -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 ] )
} }