2020-09-10 15:09:54 +00:00
|
|
|
// Import generic module functions
|
|
|
|
include { initOptions; saveFiles; getSoftwareName } from './functions'
|
|
|
|
|
2020-10-14 17:29:50 +00:00
|
|
|
params.options = [:]
|
|
|
|
def options = initOptions(params.options)
|
|
|
|
|
2020-09-10 15:09:54 +00:00
|
|
|
process GFFREAD {
|
|
|
|
tag "$gff"
|
|
|
|
publishDir "${params.outdir}",
|
|
|
|
mode: params.publish_dir_mode,
|
2020-10-14 17:29:50 +00:00
|
|
|
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') }
|
2020-09-10 15:09:54 +00:00
|
|
|
|
2020-11-12 14:55:16 +00:00
|
|
|
conda (params.enable_conda ? "bioconda::gffread=0.12.1" : null)
|
|
|
|
container "quay.io/biocontainers/gffread:0.12.1--h8b12597_0"
|
2020-09-10 15:09:54 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
path gff
|
2020-10-14 17:29:50 +00:00
|
|
|
|
2020-09-10 15:09:54 +00:00
|
|
|
output:
|
|
|
|
path "*.gtf" , emit: gtf
|
|
|
|
path "*.version.txt", emit: version
|
|
|
|
|
|
|
|
script:
|
|
|
|
def software = getSoftwareName(task.process)
|
|
|
|
"""
|
2020-10-14 17:29:50 +00:00
|
|
|
gffread $gff $options.args -o ${gff.baseName}.gtf
|
2020-09-10 15:09:54 +00:00
|
|
|
echo \$(gffread --version 2>&1) > ${software}.version.txt
|
|
|
|
"""
|
|
|
|
}
|