$ cat /tmp/x
declare -a config;
if [[ "$TRIAL_NAME" ]]; then
config+=(
deploy_url="s3://nextstrain-staging/avian-flu_trials_${TRIAL_NAME}_"
)
fi;
if [[ "$BUILDS" = "h5n1-d1.1" ]]; then
config+=(
builds='[{"subtype": ["h5n1-d1.1"],"segment": ["genome"]}]'
)
else if [[ "$BUILDS" = "h5n1-cattle-outbreak" ]]; then
config+=(
builds='[{"subtype": ["h5n1-cattle-outbreak"],"segment": ["genome","pb2","pb1","pa","ha","np","na","mp","ns"]}]'
)
fi;
printf '<%s>\n' nextstrain build \
--detach \
--no-download \
--cpus 16 \
--memory 28800mib \
. \
deploy_all \
--snakefile genome-focused/Snakefile \
--config "${config[@]}"
$ TRIAL_NAME=glob-configs-2025-03-05 BUILDS=h5n1-d1.1 bash /tmp/x
/tmp/x: line 25: syntax error: unexpected end of file
$ perl -pi -e 's/else if/elif/' /tmp/x
$ TRIAL_NAME=glob-configs-2025-03-05 BUILDS=h5n1-d1.1 bash /tmp/x
<nextstrain>
<build>
<--detach>
<--no-download>
<--cpus>
<16>
<--memory>
<28800mib>
<.>
<deploy_all>
<--snakefile>
<genome-focused/Snakefile>
<--config>
<deploy_url=s3://nextstrain-staging/avian-flu_trials_glob-configs-2025-03-05_>
<builds=[{"subtype": ["h5n1-d1.1"],"segment": ["genome"]}]>
-
-
Save tsibley/148e710e224bcdb48d43459d67d268c1 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment