mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-02 20:52:07 -05:00
Fix bug in gffread (#686)
* Fix bug in gffread that would cause it to fail if the input has .gtf as extension * Update test.yml * Update meta file * Update main.nf * Apply suggestions from code review Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
parent
f4ec33ebc4
commit
e9c57083a0
4 changed files with 11 additions and 17 deletions
|
@ -27,8 +27,12 @@ process GFFREAD {
|
|||
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
def prefix = options.suffix ? "${gff.baseName}${options.suffix}" : "${gff.baseName}"
|
||||
"""
|
||||
gffread $gff $options.args -o ${gff.baseName}.gtf
|
||||
gffread \\
|
||||
$gff \\
|
||||
$options.args \\
|
||||
-o ${prefix}.gtf
|
||||
echo \$(gffread --version 2>&1) > ${software}.version.txt
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -14,26 +14,16 @@ tools:
|
|||
licence: ['MIT']
|
||||
|
||||
input:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- gff:
|
||||
type: file
|
||||
description: A GFF file in either the GFF3 or GFF2 format.
|
||||
patter: "*.gff"
|
||||
description: A reference file in either the GFF3, GFF2 or GTF format.
|
||||
pattern: "*.{gff, gtf}"
|
||||
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- gtf:
|
||||
type: file
|
||||
description: GTF file resulting from the conversion of the GFF input file
|
||||
pattern: "*.gtf"
|
||||
pattern: "*.{gtf}"
|
||||
- version:
|
||||
type: file
|
||||
description: File containing software version
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { GFFREAD } from '../../../modules/gffread/main.nf' addParams( options: [:] )
|
||||
include { GFFREAD } from '../../../modules/gffread/main.nf' addParams( options: [suffix: '.out'] )
|
||||
|
||||
workflow test_gffread {
|
||||
input = file(params.test_data['sarscov2']['genome']['genome_gff3'], checkIfExists: true)
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
tags:
|
||||
- gffread
|
||||
files:
|
||||
- path: ./output/gffread/genome.gtf
|
||||
md5sum: f184f856b7fe3e159d21b052b5dd3954
|
||||
- path: ./output/gffread/genome.out.gtf
|
||||
md5sum: fcbf5744ed806e47768bc456fa043263
|
||||
|
|
Loading…
Reference in a new issue