Complexa Design 标志

Complexa Design

组织
NVIDIA-BioNeMo
complexa-design

Proteina-Complexa 端到端设计流水线驱动器。每当用户想要“设计一个结合体”“为 X 设计结合体”“运行 complexa design”“从头设计结合体”“PDL1 结合体”“TrkA 结合体”“为目标设计蛋白质”“蛋白质结合体设计”“配体结合体”“设计小分子结合体”“ATP 结合蛋白”“AME 基序支架”“在配体附近搭建基序支架”“基序 + 配体设计”“酶支架”“流匹配蛋白质设计”“束搜索结合体”“FK 引导”“MCTS 蛋白质设计”“使用 AF2 重新折叠”“使用 RF3 重新折叠”,或想通过单条命令获取成功率、界面 pAE、scRMSD 或 FoldSeek 多样性时,使用此技能。这是该技能集的科学核心:它会从选择目标到生成清单,驱动 `complexa design <pipeline>`,并告知用户通过筛选的设计数量。

Add to TypingMind

概览

发布者NVIDIA-BioNeMo
代码仓库bionemo-agent-toolkit
技能名称complexa-design
星标数
495
复刻数
77
附带文件
5
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 NVIDIA-BioNeMo 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Complexa Design AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/NVIDIA-BioNeMo/bionemo-agent-toolkit/tree/main/open-models-skills/proteina-complexa/complexa-design
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NVIDIA-BioNeMo/bionemo-agent-toolkit.git /tmp/bionemo-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/bionemo-agent-toolkit/open-models-skills/proteina-complexa/complexa-design .claude/skills/complexa-design
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Complexa Design,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Complexa Design。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Complexa Design 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Complexa Design Skill

Drive the full four-stage complexa design pipeline: generate (flow matching + search) -> filter (top-N by reward) -> evaluate (refold with AF2/RF3) -> analyze (success rate, FoldSeek/MMseqs diversity). Pick the right pipeline config for the design intent, validate the run upfront so the user does not discover a missing ckpt mid-folding, run it, and emit a replayable manifest + per-design success CSV.

What this skill enables

  • Protein binder design for protein targets (AF2 reward + ColabDesign refold).
  • Ligand binder design for small-molecule targets (RF3 reward + RF3 refold).
  • AME motif scaffolding with ligand context (motif + ligand features, RF3).
  • Search-based optimization: single-pass, best-of-n, beam-search, fk-steering, mcts.
  • Refold backends: ColabDesign (AF2), RF3, Boltz2, ESMFold (fast iteration).
  • Pass-rate + diversity analysis with per-result_type thresholds.

Step 1: Pre-flight

Always run the shared preflight before launching a design — generation needs the GPU and the right checkpoint, evaluation needs AF2/RF3 weights and tool binaries. Bail early if the host cannot run the chosen pipeline.

bash
bash .claude/skills/_shared/scripts/preflight.sh

Read ./complexa_setup/preflight.json and bail if any of these are missing for the chosen pipeline:

  • gpu.available: false -> all pipelines fail.
  • gpu.vram_gb < 40 -> generation OOMs at default batch_size: 16; lower to 8.
  • ckpts.complexa[.ckpt] -> required for protein binder.
  • ckpts.complexa_ligand[.ckpt] -> required for ligand binder.
  • ckpts.complexa_ame[.ckpt] -> required for AME.
  • env.AF2_DIR missing -> protein binder default eval (colabdesign) fails.
  • env.RF3_CKPT_PATH or env.RF3_EXEC_PATH missing -> ligand binder / AME default eval (rf3_latest) fails.

If a ckpt is missing, point at complexa-setup and have the user run complexa download --complexa-<variant> first.

Step 2: Pick the pipeline

Complexa has one default pipeline (protein binder) and two extensions (ligand binder, AME / enzyme). The pipeline is selected entirely by the configs/search_*_pipeline.yaml you pass to complexa design — each YAML pins its own model checkpoint, autoencoder, targets dict, default reward, and default refold backend. Switching pipelines is just "swap the config path and the target name comes from a different dict".

Default — protein binder

bash
complexa design configs/search_binder_local_pipeline.yaml \
    ++run_name=pdl1_v1 ++generation.task_name=02_PDL1

Use this when the user says "design a binder for X", "PDL1 binder", "de novo binder", "design proteins for a target", etc. — i.e. the target is a protein surface. The config pins complexa.ckpt + complexa_ae.ckpt, reads targets from configs/targets/targets_dict.yaml, rewards with AF2 (af2folding), inverse-folds with SolubleMPNN, and evaluates with ColabDesign / AF2. If the user did not specify, this is what they want.

Extension A — ligand binder (small-molecule pocket)

bash
complexa design configs/search_ligand_binder_local_pipeline.yaml \
    ++run_name=v11_v1 ++generation.task_name=39_7V11_LIGAND \
    ++metric.binder_folding_method=rf3_latest

Switch to this when the user says "ligand binder", "small-molecule pocket", "SMILES target", "ATP-binding protein", or names a target ending in _LIGAND / from the FAD / SAM / OQO / 7V11 / etc. families. The config also activates LoRA (r=32, lora_alpha=64) which is required for the released ligand checkpoint — leave the lora: block alone.

Extension B — AME / motif + ligand (enzyme scaffolding)

bash
complexa design configs/search_ame_local_pipeline.yaml \
    ++run_name=ame_chm ++generation.task_name=M0096_1chm

Switch to this when the user says "scaffold a motif near a ligand", "active-site design", "enzyme scaffolding", "AME", or names a target like M0024_1nzy, M0096_1chm (the M####_<pdb> AME task naming). The config sets env_vars.USE_V2_COMPLEXA_ARCH=True (the CLI runner injects it into the subprocess) and uses both MotifFeatures and LigandFeatures. Default search is single-pass; switch to best-of-n only if you also enable the CompositeRewardModel (commented out in ame_generate.yaml).

Pipeline cheat sheet — what changes when you switch

KnobProtein binder (default)Ligand binderAME (enzyme)
Pipeline YAMLconfigs/search_binder_local_pipeline.yamlconfigs/search_ligand_binder_local_pipeline.yamlconfigs/search_ame_local_pipeline.yaml
Model ckptcomplexa.ckptcomplexa_ligand.ckptcomplexa_ame.ckpt
Autoencoder ckptcomplexa_ae.ckptcomplexa_ligand_ae.ckptcomplexa_ame_ae.ckpt
Targets dictconfigs/targets/targets_dict.yamlconfigs/targets/ligand_targets_dict.yamlconfigs/design_tasks/ame_dict_v2.yaml
Task-name pattern<NN>_<NAME> (e.g. 02_PDL1, 22_DerF21)<NN>_<PDB>_LIGAND (e.g. 39_7V11_LIGAND)M####_<pdb> (e.g. M0096_1chm)
USE_V2_COMPLEXA_ARCH(unset → v1)(unset → v1)"True" (set in YAML)
LoRA(none)required (r=32, alpha=64)required
Default search algobest-of-nbest-of-nsingle-pass
Reward modelAF2 (af2folding)RF3 (rf3folding)null (no reward at default)
Inverse foldersoluble_mpnnligand_mpnnligand_mpnn
Default refold backendcolabdesign (AF2)rf3_latestrf3_latest
Analysis result_typeprotein_binderligand_bindermotif_ligand_binder
Required ckpts (complexa download)--complexa --all (AF2 in community)--complexa-ligand --all (RF3 in community)--complexa-ame --all (RF3 in community)

For the full per-pipeline breakdown (reward weights, success thresholds, analysis modes), see reference/pipelines.md.

Step 3: Gather parameters

Use AskUserQuestion to fill in the four parameters that vary every run. Default to sensible production settings if the user has no preference.

  • Target name — must be a key in the relevant dict (targets_dict.yaml for protein binder, ligand_targets_dict.yaml for ligand, ame_dict_v2.yaml for AME). If the user names a target that is not in the dict, hand off to complexa-target to add it first.
  • Run name — a short identifier appended to the output dir (e.g. pdl1_v1).
  • Search algorithm — default to beam-search with beam_width=8 and n_branch=4 for production. Use single-pass for a quick smoke test.
  • Evaluation refold backend — protein binder defaults to colabdesign (AF2); ligand/AME default to rf3_latest. Use esmfold for fast iteration (worse but seconds per sample).

Step 4: Validate

Validate before running. This is cheap (seconds) and catches missing ckpts, missing env vars, unknown override keys, and missing target entries — all of which would otherwise abort the pipeline mid-evaluation after hours of generation.

bash
complexa validate design configs/search_binder_local_pipeline.yaml \
    ++generation.task_name=02_PDL1 \
    ++metric.binder_folding_method=colabdesign

The validator returns non-zero on failure and prints a pass/fail report. Re-run the command with the suggested overrides until it returns clean.

Step 5: Run the pipeline

complexa design is the right tool for the full 4-stage run — it orchestrates generate → filter → evaluate → analyze as sequential subprocesses with a shared run name, log dir, and multi-GPU split (see run_design_pipeline in src/proteinfoundation/cli/cli_runner.py). Re-implementing that manually loses the per-stage log routing and progress prints.

Use ++ (forced) Hydra overrides; they apply to all stages. The minimal production protein-binder invocation:

bash
complexa design configs/search_binder_local_pipeline.yaml \
    ++run_name=pdl1_v1 \
    ++generation.task_name=02_PDL1 \
    ++generation.search.algorithm=beam-search \
    ++generation.search.beam_search.beam_width=8 \
    ++metric.binder_folding_method=colabdesign

For ligand binder / AME, swap the pipeline YAML and target name per Step 2's cheat sheet — every other override above is pipeline-agnostic and can be reused as-is.

Add --verbose to stream logs to the terminal instead of ./logs/. The skill does not poll progress — the user re-invokes if they want a status; point them at complexa status and ./logs/design_pipeline_*/.

Direct module invocation (debug fallback)

To debug a single stage without pipeline orchestration, invoke the underlying Hydra module directly. complexa generate CONFIG is just a logged subprocess wrapper around this:

bash
python -m proteinfoundation.generate \
    --config-path "$(realpath configs)" \
    --config-name search_binder_local_pipeline \
    ++run_name=debug_pdl1 \
    ++generation.task_name=02_PDL1

Same pattern for proteinfoundation.{filter,evaluate,analyze}. Use this when you want to attach ipdb, run under nsys, or skip the pipeline log dir. Prefer complexa generate/filter/evaluate/analyze for normal one-shot runs (you get logging and parallel job splitting for free).

AME-specific gotcha (when running AME with RF3 refold): RF3 will try to complete missing atoms on the ligand based on its CCD code, which produces shape errors in RMSD calculations and the wrong structure. Before RF3 sees the PDB, rename the ligand residue to L:0 so RF3 treats it as a generic ligand and skips atom completion. If your AME generation outputs already encode the ligand this way (the canonical Complexa pipeline does), no extra step is needed; otherwise patch each PDB with atomworks.io:

python
from atomworks.io import load_any, to_pdb_file
atom_array = load_any("my_design.pdb")[0]
ligand_mask = atom_array.chain_id == "A"
atom_array.res_name[ligand_mask] = "L:0"
to_pdb_file(atom_array, "my_design_rf3_ready.pdb")

Same applies if you're piping AME outputs into the complexa-evaluate-pdbs skill with an RF3 backend. Skip the rename for AF2/colabdesign refold or for non-AME pipelines.

Wall-clock at default (nsteps=400, beam_width=8, batch_size=16, 100 designs, colabdesign eval) is ~30–120 minutes on a single A100/H100.

Step 6: Collect results

Outputs land in two directories. Surface both:

bash
ls ./inference/${CONFIG_STEM}_${TASK}_*${RUN_NAME}/   # generated PDBs + filter
ls ./evaluation_results/${RUN_NAME}/                  # per-design CSV + analysis

Read the combined results CSV and summarize:

bash
ls ./evaluation_results/*/binder_results_*_combined.csv
ls ./evaluation_results/*/motif_binder_results_*_combined.csv  # AME
ls ./evaluation_results/*/res_filter_*_pass_*.csv              # success rate
ls ./evaluation_results/*/res_div_foldseek_*.csv               # FoldSeek diversity

Pull the success rate from res_filter_binder_pass_*.csv, the per-design metrics (interface pAE, pLDDT, scRMSD) from the combined CSV, and FoldSeek TM-score diversity from res_div_foldseek_*.csv. Report top-N designs by i_pAE (protein binder) or min_ipAE (ligand binder).

Step 7: Emit manifest

Drop a JSON manifest beside the results so the run is replayable. The shared helper captures the command, config, git SHA, and pointers to the result CSVs.

bash
python3 .claude/skills/_shared/scripts/write_manifest.py \
    --output-dir ./evaluation_results/${RUN_NAME} \
    --command "complexa design configs/search_binder_local_pipeline.yaml ++run_name=${RUN_NAME} ++generation.task_name=${TASK}" \
    --skill complexa-design \
    --out ./run_manifest.json

Surface the manifest path and the result CSV to the user.

Most-common overrides

The 10 overrides that cover ~90% of runs. Full reference (every key, type, default) is in reference/overrides.md.

OverrideDefaultWhat it controls
++generation.task_name=<name>(per config)Which target / AME task to design for
++run_name=<str>(config stem)Output dir suffix and CSV tag
++generation.search.algorithm=beam-searchbest-of-n (binder/ligand), single-pass (AME)Search strategy
++generation.search.beam_search.beam_width=84Beam-search width (more = better designs, slower)
++generation.args.nsteps=200400Diffusion steps (fewer = faster, lower quality)
++generation.dataloader.batch_size=816 (binder/ligand/AME)Drop to 8 on a 40GB GPU
++generation.filter.filter_samples_limit=5001000Top-N samples to keep after filtering
++metric.binder_folding_method=esmfoldcolabdesign (binder), rf3_latest (ligand/AME)Evaluation refold backend
++metric.num_redesign_seqs=82ProteinMPNN/LigandMPNN/SolubleMPNN sequences per design
++aggregation.success_thresholds.i_pAE.threshold=10.07.0 (protein binder)Loosen / tighten success criteria

Hardware requirements

ResourceMinimumRecommended
GPU1x CUDA GPU, 40 GB VRAMA100 / H100 / L40S, 80 GB VRAM
CPUs1624 (the ncpus_ default in every pipeline config)
Disk50 GB at ./inference/ + ./evaluation_results/200 GB for sweep runs
RAM32 GB64 GB+

Typical wall-clock for 100 designs, beam_width=8, default nsteps=400:

  • Protein binder + colabdesign refold: ~60–120 min on 1x A100/H100.
  • Ligand binder + RF3 refold: ~90–180 min (RF3 dominates).
  • AME + RF3 refold: ~120–240 min.
  • Any pipeline + ESMFold refold: ~30–60 min (fast iteration).

Bumping gen_njobs=2 and eval_njobs=2 halves wall-clock on a 2-GPU host. See .claude/skills/_shared/reference/hardware.md for per-pipeline VRAM tables.

Troubleshooting (common cases)

SymptomCauseFix
CUDA out of memory in generatebatch_size: 16 too big on 40GB GPU++generation.dataloader.batch_size=8
CUDA out of memory in evaluateAF2 / RF3 batched too aggressively++eval_njobs=1 and ++metric.num_redesign_seqs=2
InterpolationKeyError: AF2_DIRcolabdesign eval but .env does not set AF2_DIRSet AF2_DIR in .env or ++metric.binder_folding_method=esmfold
InterpolationKeyError: RF3_CKPT_PATHRF3 eval but RF3 not installedcomplexa download --all or switch eval backend
KeyError: 'task_name' not in target_dict_cfgTarget not in targets_dict.yaml / ligand_targets_dict.yaml / ame_dict_v2.yamlUse complexa-target skill to add it
0 designs pass success thresholdsDefaults too strict for this targetLoosen via ++aggregation.success_thresholds.*

For the full list (chain-ID mismatches, hotspot residues, ligand residue renaming for RF3, missing inverse-folding models, etc.) see reference/troubleshooting.md.


For per-pipeline details (which model, reward, inverse folding, evaluation backend, result_type, LoRA settings, USE_V2_COMPLEXA_ARCH toggle), see reference/pipelines.md.

For the full override reference (every generation.*, metric.*, aggregation.* key with type, default, example, and effect), see reference/overrides.md.

For all troubleshooting cases (cause + fix + source), see reference/troubleshooting.md.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Complexa Design AI 技能有什么作用?

Proteina-Complexa 端到端设计流水线驱动器。每当用户想要“设计一个结合体”“为 X 设计结合体”“运行 complexa design”“从头设计结合体”“PDL1 结合体”“TrkA 结合体”“为目标设计蛋白质”“蛋白质结合体设计”“配体结合体”“设计小分子结合体”“ATP 结合蛋白”“AME 基序支架”“在配体附近搭建基序支架”“基序 + 配体设计”“酶支架”“流匹配蛋白质设计”“束搜索结合体”“FK 引导”“MCTS 蛋白质设计”“使用 AF2 重新折叠”“使用 RF3 重新折叠”,或想通过单条命令获取成功率、界面 pAE、scRMSD 或 FoldSeek 多样性时,使用此技能。这是该技能集的科学核心:它会从选择目标到生成清单,驱动 `complexa design <pipeline>`,并告知用户通过筛选的设计数量。

为什么在 TypingMind 中使用 Complexa Design?

因为您只需安装一次,就能搭配任何模型使用。Complexa Design 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Complexa Design?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/NVIDIA-BioNeMo/bionemo-agent-toolkit/tree/main/open-models-skills/proteina-complexa/complexa-design。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Complexa Design?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Complexa Design 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Complexa Design 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Complexa Design AI 技能免费吗?

NVIDIA-BioNeMo 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇