Skip to content

Commit

Permalink
Fixed bug when selecting AMPLICONS and a selected virus
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeozaez committed Jan 23, 2025
1 parent bb64737 commit efb2474
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions buisciii/templates/viralrecon/ANALYSIS/lablog_viralrecon
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,28 @@ while getopts "MAmapsrfh" opt; do
fi
;;
p)
if [[ -n $virus_tag || $monkeypox == "y" ]]; then
if [[ $selected_virus == "yes" ]]; then
echo "Error: options -p, -s, and -r cannot be selected simultaneously."
exit 1
fi
monkeypox="y" # Monkeypox virus
selected_virus="yes"
;;
s)
if [[ -n $virus_tag || $monkeypox == "y" ]]; then
if [[ $selected_virus == "yes" ]]; then
echo "Error: options -p, -s, and -r cannot be selected simultaneously."
exit 1
fi
virus_tag="sars-cov-2" # SARS-CoV-2
selected_virus="yes"
;;
r)
if [[ -n $virus_tag || $monkeypox == "y" ]]; then
if [[ $selected_virus == "yes" ]]; then
echo "Error: options -p, -s, and -r cannot be selected simultaneously."
exit 1
fi
virus_tag="rsv" # RSV
selected_virus="yes"
;;
f)
samples_ref_prepared="y"
Expand Down

0 comments on commit efb2474

Please sign in to comment.