nf-core_modules/modules/ultra/index/main.nf
Sébastien Guizard 60c65fb386
New modules: ultra/index and ultra/align (#1830)
* Add ultra/index and ultra/align modules

* Correct tag and prefix

* Fix typos

* Remove SAMTOOLS SORT from test

* Update: Convert sam to bam

* Add tag to docker image

* Fix typo

* Add args2 for samtools
2022-07-04 07:46:49 +01:00

37 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
"""
}