mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
60c65fb386
* 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
37 lines
992 B
Text
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
|
|
"""
|
|
}
|