mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
fix: rename file to input and gz, plus fix tests
This commit is contained in:
parent
4f11064ae2
commit
596bb18394
3 changed files with 6 additions and 6 deletions
|
@ -18,17 +18,17 @@ process TABIX_BGZIP {
|
||||||
}
|
}
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(file)
|
tuple val(meta), path(input)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("*.gz"), emit: file
|
tuple val(meta), path("*.gz"), emit: gz
|
||||||
path "*.version.txt" , emit: version
|
path "*.version.txt" , emit: version
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def software = getSoftwareName(task.process)
|
def software = getSoftwareName(task.process)
|
||||||
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
|
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bgzip -c $options.args $file > ${prefix}.${file.getExtension()}.gz
|
bgzip -c $options.args $input > ${prefix}.${input.getExtension()}.gz
|
||||||
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
|
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ nextflow.enable.dsl = 2
|
||||||
|
|
||||||
include { TABIX_BGZIP } from '../../../../software/tabix/bgzip/main.nf' addParams( options: [:] )
|
include { TABIX_BGZIP } from '../../../../software/tabix/bgzip/main.nf' addParams( options: [:] )
|
||||||
|
|
||||||
workflow test_tabix_bgzip_vcf {
|
workflow test_tabix_bgzip {
|
||||||
|
|
||||||
def input = []
|
def input = []
|
||||||
input = [ [ id:'test' ], // meta map
|
input = [ [ id:'test' ], // meta map
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
- name: tabix bgzip
|
- name: tabix bgzip
|
||||||
command: nextflow run ./tests/software/tabix/bgzip -entry test_tabix_bgzip_vcf -c tests/config/nextflow.config
|
command: nextflow run ./tests/software/tabix/bgzip -entry test_tabix_bgzip -c tests/config/nextflow.config
|
||||||
tags:
|
tags:
|
||||||
- tabix
|
- tabix
|
||||||
- tabix_bgzip
|
- tabix_bgzip
|
||||||
files:
|
files:
|
||||||
- path: output/bgzip/test.vcf.gz
|
- path: output/tabix/test.vcf.gz
|
||||||
md5sum: 40419fb7562475d1c8ec4ab725796de2
|
md5sum: 40419fb7562475d1c8ec4ab725796de2
|
||||||
|
|
Loading…
Reference in a new issue