mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 22:23:09 +00:00
38 lines
992 B
Text
38 lines
992 B
Text
|
process ULTRA_INDEX {
|
||
|
tag "$gtf"
|
||
|
label 'process_low'
|
||
|
|
||
|
conda (params.enable_conda ? "bioconda::ultra_bioinformatics=0.0.4" : null)
|
||
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||
|
'https://depot.galaxyproject.org/singularity/ultra_bioinformatics:0.0.4.1--pyh5e36f6f_0':
|
||
|
'quay.io/biocontainers/ultra_bioinformatics:0.0.4.1--pyh5e36f6f_0' }"
|
||
|
|
||
|
input:
|
||
|
path fasta
|
||
|
path gtf
|
||
|
|
||
|
output:
|
||
|
tuple path("*.pickle"), path("*.db"), emit: index
|
||
|
path "versions.yml" , emit: versions
|
||
|
|
||
|
when:
|
||
|
task.ext.when == null || task.ext.when
|
||
|
|
||
|
script:
|
||
|
def args = task.ext.args ?: ''
|
||
|
def prefix = task.ext.prefix ?: "${gtf.baseName}"
|
||
|
"""
|
||
|
uLTRA \\
|
||
|
index \\
|
||
|
$args \\
|
||
|
$fasta \\
|
||
|
$gtf \\
|
||
|
./
|
||
|
|
||
|
cat <<-END_VERSIONS > versions.yml
|
||
|
"${task.process}":
|
||
|
ultra: \$( uLTRA --version|sed 's/uLTRA //g' )
|
||
|
END_VERSIONS
|
||
|
"""
|
||
|
}
|