Skip to content

Commit

Permalink
fix bgziptabix extension (#1784)
Browse files Browse the repository at this point in the history
* fix bgziptabix extension

* update test.yml
  • Loading branch information
nvnieuwk authored Jun 15, 2022
1 parent 0af6ade commit 9dbafff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/tabix/bgziptabix/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ process TABIX_BGZIPTABIX {
def args2 = task.ext.args2 ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
bgzip --threads ${task.cpus} -c $args $input > ${prefix}.gz
tabix $args2 ${prefix}.gz
bgzip --threads ${task.cpus} -c $args $input > ${prefix}.${input.getExtension()}.gz
tabix $args2 ${prefix}.${input.getExtension()}.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
8 changes: 4 additions & 4 deletions tests/modules/tabix/bgziptabix/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
- name: tabix bgziptabix
- name: tabix bgziptabix test_tabix_bgziptabix
command: nextflow run ./tests/modules/tabix/bgziptabix -entry test_tabix_bgziptabix -c ./tests/config/nextflow.config -c ./tests/modules/tabix/bgziptabix/nextflow.config
tags:
- tabix
- tabix/bgziptabix
- tabix
files:
- path: ./output/tabix/test.gz
- path: output/tabix/test.vcf.gz
md5sum: fc178eb342a91dc0d1d568601ad8f8e2
- path: ./output/tabix/test.gz.tbi
- path: output/tabix/test.vcf.gz.tbi
md5sum: 36e11bf96ed0af4a92caa91a68612d64

0 comments on commit 9dbafff

Please sign in to comment.