Skip to content

Commit

Permalink
Update src/samtools/samtools_fastq/script.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Robrecht Cannoodt <[email protected]>
  • Loading branch information
emmarousseau and rcannood authored Jul 1, 2024
1 parent c307b9e commit b9a961d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/samtools/samtools_fastq/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ set -e
[[ "$par_copy_tags" == "false" ]] && unset par_copy_tags
[[ "$par_casava" == "false" ]] && unset par_casava

samtools "$par_command" \
if [[ "$meta_name" == "samtools_fasta" ]]; then
subcommand=fasta
elif [[ "$meta_name" == "samtools_fastq" ]]; then
subcommand=fastq
else
echo "Unrecognized component name" && exit 1
fi
samtools "$subcommand" \
${par_no_suffix:+-n} \
${par_suffix:+-N} \
${par_use_oq:+-O} \
Expand Down

0 comments on commit b9a961d

Please sign in to comment.