@@ -33,24 +33,35 @@ test -s alignment.fa && test -s tree.nwk && test -s foreground.txt
3333# --- analyze(既定=ECM系) ---
3434rm -f alignment.fa.{iqtree,log,rate,state,treefile} || true
3535MARKER=$( mktemp) ; sleep 1; touch " $MARKER "
36+
37+ set +e
3638env PYTHONOPTIMIZE=1 OMP_NUM_THREADS=1 csubst analyze \
3739 --alignment_file alignment.fa \
3840 --rooted_tree_file tree.nwk \
3941 --foreground foreground.txt \
4042 --threads 1
43+ ANALYZE_RC1=$?
44+ set -e
45+ echo " [SMOKE] analyze exited rc=${ANALYZE_RC1} (validate by files)"
46+
4147NEW_TSV=($( find . -maxdepth 1 -type f -name " csubst_*.tsv" -newer " $MARKER " -print) )
4248[ ${# NEW_TSV[@]} -ge 1 ] || { echo " ERROR: analyze 後に TSV が増えていない" ; exit 1; }
4349echo " OK: analyze(created): ${NEW_TSV[*]} "
4450
4551# --- analyze(GY 分岐) ---
4652rm -f alignment.fa.{iqtree,log,rate,state,treefile} || true
4753MARKER=$( mktemp) ; sleep 1; touch " $MARKER "
54+
55+ set +e
4856env PYTHONOPTIMIZE=1 OMP_NUM_THREADS=1 csubst analyze \
49- --alignment_file alignment.fa \
50- --rooted_tree_file tree.nwk \
51- --foreground foreground.txt \
52- --iqtree_model GY+F3x4+R2 \
53- --threads 1
57+ --alignment_file alignment.fa \
58+ --rooted_tree_file tree.nwk \
59+ --foreground foreground.txt \
60+ --threads 1
61+ ANALYZE_RC1=$?
62+ set -e
63+ echo " [SMOKE] analyze exited rc=${ANALYZE_RC1} (validate by files)"
64+
5465NEW_TSV=($( find . -maxdepth 1 -type f -name " csubst_*.tsv" -newer " $MARKER " -print) )
5566[ ${# NEW_TSV[@]} -ge 1 ] || { echo " ERROR: analyze(GY) 後に TSV が増えていない" ; exit 1; }
5667echo " OK: analyze(GY)(created): ${NEW_TSV[*]} "
0 commit comments