Skip to content

Commit

Permalink
Update script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaspe committed Jul 19, 2024
1 parent d9720c1 commit f89e24a
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/fastqc/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,41 @@
## VIASH END

# unset flags
[[ "$par_casava" == "false" ]] && unset par_
[[ "$par_casava" == "false" ]] && unset par_casava
[[ "$par_nano" == "false" ]] && unset par_nano
[[ "$par_nofilter" == "false" ]] && unset par_nofilter
[[ "$par_extract" == "false" ]] && unset par_extract
[[ "$par_java" == "false" ]] && unset par_java
[[ "$par_noextract" == "false" ]] && unset par_noextract
[[ "$par_nogroup" == "false" ]] && unset par_nogroup
[[ "$par_min_length" == "false" ]] && unset par_min_length
[[ "$par_format" == "false" ]] && unset par_format
[[ "$par_threads" == "false" ]] && unset par_threads
[[ "$par_contaminants" == "false" ]] && unset par_contaminants
[[ "$par_adapters" == "false" ]] && unset par_adapters
[[ "$par_limits" == "false" ]] && unset par_limits
[[ "$par_kmers" == "false" ]] && unset par_kmers
[[ "$par_quiet" == "false" ]] && unset par_quiet
[[ "$par_dir" == "false" ]] && unset par_dir

# run fastqc
fastqc \
${par_outdir:+--outdir "$par_outdir"} \
${par_casava:+--casava} \
${par_nano:+--nano} \
${par_nofilter:+--nofilter} \
${par_extract:+--extract} \
${par_java:+--java "$par_java"} \
${par_noextract:+--noextract} \
${par_nogroup:+--nogroup} \
${par_min_length:+--min_length "$par_min_length"} \
${par_format:+--format "$par_format"} \
${par_threads:+--threads "$par_threads"} \
${par_contaminants:+--contaminants "$par_contaminants"} \
${par_adapters:+--adapters "$par_adapters"} \
${par_limits:+--limits "$par_limits"} \
${par_kmers:+--kmers "$par_kmers"} \
${par_quiet:+--quiet} \
${par_dir:+--dir "$par_dir"} \
$par_input

0 comments on commit f89e24a

Please sign in to comment.