Skip to content

Commit

Permalink
add dummy argument to samtools_fastq to share the script with samtool…
Browse files Browse the repository at this point in the history
…s_fasta
  • Loading branch information
emmarousseau committed May 30, 2024
1 parent 8b708fb commit 7d895a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/samtools/samtools_fastq/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ argument_groups:
direction: output
- name: Options
arguments:
- name: --command
type: string
description: |
This is a dummy argument to use the same script for multiple samtools commands.
default: fastq
- name: --no_suffix
alternatives: -n
type: boolean_true
Expand Down
2 changes: 1 addition & 1 deletion src/samtools/samtools_fastq/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -e
[[ "$par_copy_tags" == "false" ]] && unset par_copy_tags
[[ "$par_casava" == "false" ]] && unset par_casava

samtools fastq \
samtools "$par_command" \
${par_no_suffix:+-n} \
${par_suffix:+-N} \
${par_use_oq:+-O} \
Expand Down

0 comments on commit 7d895a1

Please sign in to comment.