Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
running-predictions【部署与运维】Plan and run AlphaFold 3 predictions via Docker or local Python, including full runs, data-pipeline-only/inference-only splits, database/model setup, hardware and performance flags, and runtime diagnostics.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user needs to execute or debug AlphaFold 3 prediction workflows. It covers command shape, setup prerequisites, stage splitting, database/model paths, HMMER tools, GPU/runtime tuning, and safe preflight checks.
../input-preparation/.../output-interpretation/.folding_input, DataPipeline, ModelRunner, or process_fold_input directly from Python, use ../python-apis/.AlphaFold 3 runs through run_alphafold.py. A full prediction needs exactly one of --json_path or --input_dir, an --output_dir, model parameters via --model_dir, and database paths via --db_dir or explicit database flags when the data pipeline runs.
Typical Docker command shape:
docker run --rm -it \
--volume "$AF_INPUT:/root/af_input:ro" \
--volume "$AF_OUTPUT:/root/af_output" \
--volume "$AF_MODEL_DIR:/root/models:ro" \
--volume "$AF_DB_DIR:/root/public_databases:ro" \
--gpus all \
alphafold3 \
python run_alphafold.py \
--json_path=/root/af_input/fold_input.json \
--model_dir=/root/models \
--db_dir=/root/public_databases \
--output_dir=/root/af_output
Local Python command shape:
python run_alphafold.py \
--json_path=fold_input.json \
--model_dir=/path/to/model_parameters \
--db_dir=/path/to/public_databases \
--output_dir=/path/to/af_output
Use scripts/build_run_command.py to print a command without executing it. Use scripts/check_runtime_requirements.py to check imports, generated CCD resources, HMMER binaries, and optional model/database paths without downloading or mutating anything.
--run_data_pipeline=true and --run_inference=true.--run_inference=false; this writes JSON augmented with MSAs/templates for later inference.--run_data_pipeline=false; input JSON must already contain precomputed MSA/template fields or explicitly empty values where appropriate.--force_output_dir=true on the second stage.python run_alphafold.py --help can render flags but still exit non-zero because --output_dir is marked required; treat visible help text as useful even if the exit code is 1.references/cli-reference.md groups the runtime flags by purpose.references/setup-and-performance.md explains setup, Docker/local execution, split workflows, sharding, GPU choices, and performance knobs.references/troubleshooting.md maps common runtime failures to concrete checks and fixes.