Skip to content

Commit

Permalink
update multiple separator (#81)
Browse files Browse the repository at this point in the history
* update multiple separator

* update changelog

* Update src/multiqc/config.vsh.yaml

Co-authored-by: Robrecht Cannoodt <[email protected]>

* Update src/multiqc/config.vsh.yaml

Co-authored-by: Robrecht Cannoodt <[email protected]>

* Update src/multiqc/config.vsh.yaml

Co-authored-by: Robrecht Cannoodt <[email protected]>

* Update src/multiqc/config.vsh.yaml

Co-authored-by: Robrecht Cannoodt <[email protected]>

* update ifs

---------

Co-authored-by: Robrecht Cannoodt <[email protected]>
  • Loading branch information
dorien-er and rcannood authored Jul 11, 2024
1 parent 508a40a commit f71ed87
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

* `cutadapt`: demultiplexing is now disabled by default. It can be re-enabled by using `demultiplex_mode`.

* `multiqc`: update multiple separator to `;` (PR #81).

## MINOR CHANGES

* `busco` components: update BUSCO to `5.7.1`.
Expand Down
12 changes: 4 additions & 8 deletions src/multiqc/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,21 @@ argument_groups:
- name: "--include_modules"
type: string
multiple: true
multiple_sep: ","
example: fastqc,cutadapt
example: [fastqc, cutadapt]
description: Use only these module
- name: "--exclude_modules"
type: string
multiple: true
multiple_sep: ","
example: fastqc,cutadapt
example: [fastqc, cutadapt]
description: Do not use only these modules
- name: "--ignore_analysis"
type: string
multiple: true
multiple_sep: ","
example: run_one/*,run_two/*
example: [run_one/*, run_two/*]
- name: "--ignore_samples"
type: string
multiple: true
multiple_sep: ","
example: sample_1*,sample_3*
example: [sample_1*, sample_3*]
- name: "--ignore_symlinks"
type: boolean_true
description: Ignore symlinked directories and files
Expand Down
8 changes: 4 additions & 4 deletions src/multiqc/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IFS=";" read -ra inputs <<< $par_input

if [[ -n "$par_include_modules" ]]; then
include_modules=""
IFS="," read -ra incl_modules <<< $par_include_modules
IFS=";" read -ra incl_modules <<< $par_include_modules
for i in "${incl_modules[@]}"; do
include_modules+="--include $i "
done
Expand All @@ -47,7 +47,7 @@ fi

if [[ -n "$par_exclude_modules" ]]; then
exclude_modules=""
IFS="," read -ra excl_modules <<< $par_exclude_modules
IFS=";" read -ra excl_modules <<< $par_exclude_modules
for i in "${excl_modules[@]}"; do
exclude_modules+="--exclude $i"
done
Expand All @@ -56,7 +56,7 @@ fi

if [[ -n "$par_ignore_analysis" ]]; then
ignore=""
IFS="," read -ra ignore_analysis <<< $par_ignore_analysis
IFS=";" read -ra ignore_analysis <<< $par_ignore_analysis
for i in "${ignore_analysis[@]}"; do
ignore+="--ignore $i "
done
Expand All @@ -65,7 +65,7 @@ fi

if [[ -n "$par_ignore_samples" ]]; then
ignore_samples=""
IFS="," read -ra ign_samples <<< $par_ignore_samples
IFS=";" read -ra ign_samples <<< $par_ignore_samples
for i in "${ign_samples[@]}"; do
ignore_samples+="--ignore-samples $i"
done
Expand Down

0 comments on commit f71ed87

Please sign in to comment.