Skip to content

Commit

Permalink
script: fix cli --clades arg parsing for scr2rf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Eaton committed Oct 3, 2022
1 parent bed29fd commit 9300772
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions scripts/sc2rf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ while [[ $# -gt 0 ]]; do
shift # past argument
shift # past value
;;
--clades)
clades=$2
shift # past argument
shift # past value
;;
--primers)
primers=$2
shift # past argument
Expand Down Expand Up @@ -57,6 +52,12 @@ while [[ $# -gt 0 ]]; do
shift # past value
fi
;;
*)
# This is a risky way to parse the clades for sc2rf
value=$1
sc2rf_args+=("$value")
shift # past value
;;
esac
done

Expand Down
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ rule sc2rf:
"logs/{rule}/{{build}}_{{mode}}_{today}.log".format(today=today, rule=rule_name),
shell:
"""
bash scripts/sc2rf.sh \
scripts/sc2rf.sh \
--alignment {input.alignment} \
--output-ansi {output.ansi} \
--output-csv {output.csv} \
Expand Down

0 comments on commit 9300772

Please sign in to comment.