Skip to content

Commit

Permalink
Fix argument issues in bgzip (viash-hub#14)
Browse files Browse the repository at this point in the history
* fix argument issues

* add reference for htslib to the bgzip component
  • Loading branch information
rcannood authored Jan 31, 2024
1 parent 88f7b92 commit 16d7fd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bgzip/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ functionality:
documentation: https://www.htslib.org/doc/bgzip.html
repository: https://github.com/samtools/htslib
licence: MIT
reference:
doi: 10.1093/gigascience/giab007
requirements:
commands: [ bgzip ]
argument_groups:
Expand All @@ -30,7 +32,7 @@ functionality:
description: name of BGZF index file [file.gz.gzi]
- name: Arguments
arguments:
- name: offset
- name: --offset
alternatives: -b
type: integer
description: decompress at virtual file pointer (0-based uncompressed offset)
Expand Down Expand Up @@ -79,6 +81,7 @@ functionality:
[[ "$par_binary" == "false" ]] && unset par_binary
bgzip -c \
${meta_cpus:+--threads "${meta_cpus}"} \
${par_offset:+-b "${par_offset}"} \
${par_decompress:+-d} \
${par_rebgzip:+-g} \
${par_index:+-i} \
Expand All @@ -87,6 +90,7 @@ functionality:
${par_reindex:+-r} \
${par_size:+-s "${par_size}"} \
${par_test:+-t} \
${par_binary:+--binary} \
"$par_input" > "$par_output"
test_resources:
- type: bash_script
Expand Down

0 comments on commit 16d7fd3

Please sign in to comment.