| ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| # 定义基础路径 | |
| MCP_GRAPH="$ROOT_DIR/graph_outputs/mcp_generated_graph_benchmark_biobench" | |
| # 定义所有任务 | |
| tasks=( | |
| "deseq" | |
| "alzheimer-mouse" | |
| "comparative-genomics" | |
| "cystic-fibrosis" | |
| "evolution" | |
| "giab" | |
| "metagenomics" | |
| "single-cell" | |
| "transcript-quant" | |
| "viral-metagenomics" | |
| ) | |
| # 并行运行每个任务 | |
| for task in "${tasks[@]}"; do | |
| python $ROOT_DIR/run_bioagent_bench.py --task "$task" --mcp-graph "$MCP_GRAPH" & | |
| done | |
| # 等待所有后台进程完成 | |
| wait | |
| echo "所有任务已完成" | |