mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 11:38:17 +00:00
30 lines
896 B
Text
30 lines
896 B
Text
process BOWTIE_BUILD {
|
|
tag "$fasta"
|
|
label 'process_high'
|
|
|
|
conda (params.enable_conda ? 'bioconda::bowtie=1.3.0' : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/bowtie:1.3.0--py38hed8969a_1' :
|
|
'quay.io/biocontainers/bowtie:1.3.0--py38hed8969a_1' }"
|
|
|
|
input:
|
|
path fasta
|
|
|
|
output:
|
|
path 'bowtie' , emit: index
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
"""
|
|
mkdir bowtie
|
|
bowtie-build --threads $task.cpus $fasta bowtie/${fasta.baseName}
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
bowtie: \$(echo \$(bowtie --version 2>&1) | sed 's/^.*bowtie-align-s version //; s/ .*\$//')
|
|
END_VERSIONS
|
|
"""
|
|
}
|