Skip to content

Commit

Permalink
Extra arg to allow use of bbmap args
Browse files Browse the repository at this point in the history
  • Loading branch information
emmarousseau committed Sep 23, 2024
1 parent d6c3fb4 commit 82bd7b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bbmap_bbsplit/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ argument_groups:
- name: "--nzo"
type: boolean_true
description: Only print lines with nonzero coverage.

- name: "--bbmap_args"
type: string
description: |
Additional arguments from BBMap to pass to BBSplit.
resources:
- type: bash_script
path: script.sh
Expand Down
3 changes: 3 additions & 0 deletions src/bbmap_bbsplit/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ else
if [ "$par_untrim" = true ]; then extra_args+=" --untrim"; fi
if [ "$par_nzo" = true ]; then extra_args+=" --nzo"; fi

if [ -n "$par_bbmap_args" ]; then extra_args+=" $par_bbmap_args"; fi


if $par_paired; then
bbsplit.sh \
$index_files \
Expand Down

0 comments on commit 82bd7b8

Please sign in to comment.