2020-12-17 23:50:24 +00:00
|
|
|
process GFFREAD {
|
|
|
|
tag "$gff"
|
2021-03-16 17:16:47 +00:00
|
|
|
label 'process_low'
|
2020-12-17 23:50:24 +00:00
|
|
|
|
2021-02-16 23:58:23 +00:00
|
|
|
conda (params.enable_conda ? "bioconda::gffread=0.12.1" : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://depot.galaxyproject.org/singularity/gffread:0.12.1--h8b12597_0' :
|
|
|
|
'quay.io/biocontainers/gffread:0.12.1--h8b12597_0' }"
|
2020-12-17 23:50:24 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
path gff
|
|
|
|
|
|
|
|
output:
|
|
|
|
path "*.gtf" , emit: gtf
|
2021-10-01 13:04:56 +00:00
|
|
|
path "versions.yml" , emit: versions
|
2020-12-17 23:50:24 +00:00
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2020-12-17 23:50:24 +00:00
|
|
|
script:
|
2021-12-07 14:00:43 +00:00
|
|
|
def args = task.ext.args ?: ''
|
|
|
|
def prefix = task.ext.prefix ?: "${gff.baseName}"
|
2020-12-17 23:50:24 +00:00
|
|
|
"""
|
2021-09-15 18:55:08 +00:00
|
|
|
gffread \\
|
|
|
|
$gff \\
|
2021-11-26 07:58:40 +00:00
|
|
|
$args \\
|
2021-09-15 18:55:08 +00:00
|
|
|
-o ${prefix}.gtf
|
2021-09-27 08:41:24 +00:00
|
|
|
cat <<-END_VERSIONS > versions.yml
|
2021-11-26 07:58:40 +00:00
|
|
|
"${task.process}":
|
|
|
|
gffread: \$(gffread --version 2>&1)
|
2021-09-27 08:41:24 +00:00
|
|
|
END_VERSIONS
|
2020-12-17 23:50:24 +00:00
|
|
|
"""
|
|
|
|
}
|