chore: 初始版本提交 - 简化架构 + 轮询改造

- 移除 Motia Streams 实时通信,改用 3 秒轮询
- 简化前端代码,移除冗余组件
- 简化后端架构,准备 FastAPI 重构
- 更新 pixi.toml 环境配置
- 保留 bttoxin_digger_v5_repro 作为参考文档

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zly
2026-01-13 16:50:09 +08:00
parent 4c9a7d0978
commit fe353fc0bc
134 changed files with 1237947 additions and 2518 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -lt 2 ]]; then
echo "Usage: $0 <input_dir> <scaf_suffix> [threads] [bttoxin_db_dir]"
echo "Example: $0 /home/zly/project/bttoxin-pipeline/tests/test_data .fna 4"
echo "Example with external DB: $0 /home/zly/project/bttoxin-pipeline/tests/test_data .fna 4 /home/zly/project/bttoxin-pipeline/external_dbs/bt_toxin"
exit 1
fi
input_dir="$1"
scaf_suffix="$2"
threads="${3:-4}"
bttoxin_db_dir="${4:-}"
cache_dir="$(pwd)/.rattler-cache"
mkdir -p "$cache_dir"
if [[ -n "$bttoxin_db_dir" ]]; then
if [[ -d "$bttoxin_db_dir" ]]; then
env_bin="$(RATTLER_CACHE_DIR="$cache_dir" pixi run which BtToxin_Digger | xargs dirname)"
ln -sfn "$bttoxin_db_dir" "$env_bin/BTTCMP_db/bt_toxin"
else
echo "[warn] bttoxin_db_dir not found: $bttoxin_db_dir" >&2
fi
fi
RATTLER_CACHE_DIR="$cache_dir" pixi run BtToxin_Digger \
--SeqPath "$input_dir" \
--SequenceType nucl \
--Scaf_suffix "$scaf_suffix" \
--threads "$threads"