1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-23 05:39:55 +00:00
taxprofiler/modules/nf-core/minimap2/index/main.nf

35 lines
934 B
Text
Raw Normal View History

2022-05-03 07:28:46 +00:00
process MINIMAP2_INDEX {
label 'process_medium'
// Note: the versions here need to match the versions used in minimap2/align
conda "bioconda::minimap2=2.24"
2022-05-03 07:28:46 +00:00
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/minimap2:2.24--h7132678_1' :
'quay.io/biocontainers/minimap2:2.24--h7132678_1' }"
2022-05-03 07:28:46 +00:00
input:
2022-10-11 10:38:18 +00:00
tuple val(meta), path(fasta)
2022-05-03 07:28:46 +00:00
output:
2022-10-11 10:38:18 +00:00
tuple val(meta), path("*.mmi"), emit: index
path "versions.yml" , emit: versions
2022-05-03 07:28:46 +00:00
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
"""
minimap2 \\
-t $task.cpus \\
-d ${fasta.baseName}.mmi \\
$args \\
$fasta
cat <<-END_VERSIONS > versions.yml
"${task.process}":
minimap2: \$(minimap2 --version 2>&1)
END_VERSIONS
"""
}