# nvidia-bionemo/proteina-complexa architecture

> Architecture diagram of the GitHub repository nvidia-bionemo/proteina-complexa, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nvidia-bionemo/proteina-complexa
- Repository: https://github.com/nvidia-bionemo/proteina-complexa

## Overview

Proteina-Complexa designs atomistic protein complexes: a user configures a target and generation run, the flow-matching model produces binder structures and sequences, optional test-time search optimizes candidates with reward models, and evaluation and analysis report/filter results. README documents ligand and motif-scaffolding designs, sequence-design options, and prediction-based validation. The graph preserves these product branches; source excerpts are sparse, so detailed runtime wiring is shown only where the index or excerpts support it.

Main entry points: [`src/proteinfoundation/generate.py`](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/generate.py) (Generation orchestration), [`src/proteinfoundation/cli/cli_runner.py`](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/cli/cli_runner.py) (CLI commands), [`src/proteinfoundation/evaluation`](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/evaluation) (Evaluation workflows), [`src/proteinfoundation/nn/genie2.py`](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/nn/genie2.py) (Generative network)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interface"]
  node_cli["CLI commands<br/>[cli_runner.py]"]
  node_targets["Target configs<br/>[target_manager.py]"]
end

subgraph group_generation["Design generation"]
  node_generation["Generation orchestration<br/>[generate.py]"]
  node_flow["Flow matching"]
  node_features["Model features"]
  node_network["Generative network<br/>[genie2.py]"]
  node_autoencoder["Structure autoencoder<br/>[autoencoder.py]"]
  node_inference["Autoencoder inference<br/>[inference.py]"]
end

subgraph group_optimization["Search and scoring"]
  node_search["Search strategies"]
  node_rewards["Reward models"]
end

subgraph group_validation["Validation and analysis"]
  node_metrics["Evaluation metrics"]
  node_evaluation["Evaluation workflows"]
  node_analysis["Result analysis"]
end

subgraph group_models["Model integrations"]
  node_sequence["Sequence design"]
  node_prediction["Structure prediction"]
  node_ligandmpnn["Ligand sequence design<br/>[run.py]"]
  node_datasets["Structure datasets"]
end

node_user(("Design user"))

node_user -->|"runs commands"| node_cli
node_cli -->|"manages targets"| node_targets
node_cli -.->|"starts design"| node_generation
node_generation -.->|"generates with"| node_flow
node_generation -.->|"uses model"| node_network
node_network -.->|"uses features"| node_features
node_generation -.->|"encodes structures"| node_autoencoder
node_inference -->|"calls"| node_autoencoder
node_generation -.->|"optimizes at inference"| node_search
node_search -->|"scores candidates"| node_rewards
node_generation -.->|"designs sequences"| node_sequence
node_generation -.->|"designs ligand sequences"| node_ligandmpnn
node_generation -.->|"trains on complexes"| node_datasets
node_evaluation -.->|"validates structures"| node_prediction
node_evaluation -.->|"computes metrics"| node_metrics
node_cli -.->|"runs evaluation"| node_evaluation
node_cli -.->|"analyzes results"| node_analysis
node_analysis -.->|"filters and summarizes"| node_metrics

click node_cli "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/cli/cli_runner.py"
click node_targets "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/cli/target_manager.py"
click node_generation "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/generate.py"
click node_flow "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/flow_matching"
click node_features "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/nn/feature_factory"
click node_network "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/nn/genie2.py"
click node_autoencoder "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/partial_autoencoder/autoencoder.py"
click node_inference "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/partial_autoencoder/inference.py"
click node_search "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/search"
click node_rewards "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/rewards"
click node_metrics "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/metrics"
click node_evaluation "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/evaluation"
click node_analysis "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/result_analysis"
click node_sequence "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/community_models/ProteinMPNN/protein_mpnn_run.py"
click node_prediction "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/community_models/colabdesign/af"
click node_ligandmpnn "https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/community_models/LigandMPNN/run.py"
click node_datasets "https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/datasets"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_targets,node_user toneBlue
class node_generation,node_flow,node_features,node_network,node_autoencoder,node_inference toneAmber
class node_search,node_rewards toneMint
class node_metrics,node_evaluation,node_analysis toneRose
class node_sequence,node_prediction,node_ligandmpnn,node_datasets toneIndigo
```

## Components

### User interface

- [CLI commands](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/cli/cli_runner.py): `src/proteinfoundation/cli/cli_runner.py`
- [Target configs](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/cli/target_manager.py): `src/proteinfoundation/cli/target_manager.py`

### Design generation

- [Generation orchestration](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/generate.py): `src/proteinfoundation/generate.py`
- [Flow matching](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/flow_matching): `src/proteinfoundation/flow_matching`
- [Model features](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/nn/feature_factory): `src/proteinfoundation/nn/feature_factory`
- [Generative network](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/nn/genie2.py): `src/proteinfoundation/nn/genie2.py`
- [Structure autoencoder](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/partial_autoencoder/autoencoder.py): `src/proteinfoundation/partial_autoencoder/autoencoder.py`
- [Autoencoder inference](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/src/proteinfoundation/partial_autoencoder/inference.py): `src/proteinfoundation/partial_autoencoder/inference.py`

### Search and scoring

- [Search strategies](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/search): `src/proteinfoundation/search`
- [Reward models](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/rewards): `src/proteinfoundation/rewards`

### Validation and analysis

- [Evaluation metrics](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/metrics): `src/proteinfoundation/metrics`
- [Evaluation workflows](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/evaluation): `src/proteinfoundation/evaluation`
- [Result analysis](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/result_analysis): `src/proteinfoundation/result_analysis`

### Model integrations

- [Sequence design](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/community_models/ProteinMPNN/protein_mpnn_run.py): `community_models/ProteinMPNN/protein_mpnn_run.py`
- [Structure prediction](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/community_models/colabdesign/af): `community_models/colabdesign/af`
- [Ligand sequence design](https://github.com/nvidia-bionemo/proteina-complexa/blob/dev/community_models/LigandMPNN/run.py): `community_models/LigandMPNN/run.py`
- [Structure datasets](https://github.com/nvidia-bionemo/proteina-complexa/tree/dev/src/proteinfoundation/datasets): `src/proteinfoundation/datasets`

### Other components

- **Design user**

## Connections

- Design user → CLI commands: runs commands
- CLI commands → Target configs: manages targets (evidence: `src/proteinfoundation/cli/target_manager.py`)
- CLI commands → Generation orchestration: starts design (evidence: `README.md`)
- Generation orchestration → Flow matching: generates with (evidence: `README.md`)
- Generation orchestration → Generative network: uses model (evidence: `README.md`)
- Generative network → Model features: uses features
- Generation orchestration → Structure autoencoder: encodes structures (evidence: `src/proteinfoundation/partial_autoencoder/autoencoder.py`)
- Autoencoder inference → Structure autoencoder: calls (evidence: `src/proteinfoundation/partial_autoencoder/inference.py`)
- Generation orchestration → Search strategies: optimizes at inference (evidence: `README.md`)
- Search strategies → Reward models: scores candidates (evidence: `src/proteinfoundation/search/mcts_search.py`)
- Generation orchestration → Sequence design: designs sequences (evidence: `README.md`)
- Generation orchestration → Ligand sequence design: designs ligand sequences (evidence: `README.md`)
- Generation orchestration → Structure datasets: trains on complexes (evidence: `README.md`)
- Evaluation workflows → Structure prediction: validates structures (evidence: `README.md`)
- Evaluation workflows → Evaluation metrics: computes metrics (evidence: `README.md`)
- CLI commands → Evaluation workflows: runs evaluation (evidence: `README.md`)
- CLI commands → Result analysis: analyzes results (evidence: `README.md`)
- Result analysis → Evaluation metrics: filters and summarizes (evidence: `README.md`)
