# open-neovax-course/open-neovax architecture

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

- Interactive diagram: https://gitdiagram.com/open-neovax-course/open-neovax
- Repository: https://github.com/open-neovax-course/open-neovax

## Overview

Open-NeoVax is a Streamlit application and extensible Python framework for prioritizing HLA class I neoepitopes. The principal workflow loads and validates candidate mutations from CSV, executes discovered biological scoring modules, normalizes and aggregates their scores, then displays ranked candidates and per-candidate details. The README identifies four scoring domains: physicochemical properties, processing and presentation, HLA binding, and safety/self-similarity. The analysis directory is represented as a separate research/modeling subsystem; its internal relationships are not established by the excerpts.

Main entry points: [`app.py`](https://github.com/open-neovax-course/open-neovax/blob/main/app.py) (Streamlit workflow), [`logic/orchestrator.py`](https://github.com/open-neovax-course/open-neovax/blob/main/logic/orchestrator.py) (Module execution), [`logic/data_loader.py`](https://github.com/open-neovax-course/open-neovax/blob/main/logic/data_loader.py) (CSV validation), [`logic/scoring.py`](https://github.com/open-neovax-course/open-neovax/blob/main/logic/scoring.py) (Normalization and ranking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_app["Streamlit workflow<br/>[app.py]"]
  node_results["Ranked candidates"]
end

subgraph group_pipeline["Candidate pipeline"]
  node_loader["CSV validation<br/>[data_loader.py]"]
  node_candidate["Candidate record<br/>[types.py]"]
  node_orchestrator["Module execution<br/>[orchestrator.py]"]
  node_scoring["Normalization and ranking<br/>[scoring.py]"]
end

subgraph group_biology["Biological scoring"]
  node_module_a["Physicochemical scores"]
  node_module_b["Processing scores"]
  node_module_c["HLA binding scores"]
  node_module_d["Safety and self scores"]
end

subgraph group_research["Analysis"]
  node_analysis_models["Group model analyses<br/>[groupe_01_model.py]"]
  node_analysis_scores["Score analysis<br/>[score_analysis.py]"]
end

node_user(("Researcher"))
node_csv["Candidate CSV"]

node_user -->|"uses"| node_app
node_csv -->|"uploads or selects"| node_app
node_app -->|"loads candidates"| node_loader
node_loader -->|"creates records"| node_candidate
node_app -->|"runs modules"| node_orchestrator
node_orchestrator -->|"executes discovered"| node_module_a
node_orchestrator -->|"executes discovered"| node_module_b
node_orchestrator -->|"executes discovered"| node_module_c
node_orchestrator -->|"executes discovered"| node_module_d
node_app -->|"aggregates scores"| node_scoring
node_scoring -->|"ranks candidates"| node_results
node_app -->|"displays details"| node_results

click node_app "https://github.com/open-neovax-course/open-neovax/blob/main/app.py"
click node_loader "https://github.com/open-neovax-course/open-neovax/blob/main/logic/data_loader.py"
click node_candidate "https://github.com/open-neovax-course/open-neovax/blob/main/logic/types.py"
click node_orchestrator "https://github.com/open-neovax-course/open-neovax/blob/main/logic/orchestrator.py"
click node_module_a "https://github.com/open-neovax-course/open-neovax/tree/main/modules"
click node_module_b "https://github.com/open-neovax-course/open-neovax/tree/main/modules"
click node_module_c "https://github.com/open-neovax-course/open-neovax/tree/main/modules"
click node_module_d "https://github.com/open-neovax-course/open-neovax/tree/main/modules"
click node_scoring "https://github.com/open-neovax-course/open-neovax/blob/main/logic/scoring.py"
click node_analysis_models "https://github.com/open-neovax-course/open-neovax/blob/main/analysis/groupe_01_model.py"
click node_analysis_scores "https://github.com/open-neovax-course/open-neovax/blob/main/analysis/score_analysis.py"

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_app,node_results toneBlue
class node_loader,node_candidate,node_orchestrator,node_scoring toneAmber
class node_module_a,node_module_b,node_module_c,node_module_d toneMint
class node_analysis_models,node_analysis_scores toneRose
class node_user,node_csv toneIndigo
```

## Components

### User interface

- [Streamlit workflow](https://github.com/open-neovax-course/open-neovax/blob/main/app.py): `app.py`
- **Ranked candidates**

### Candidate pipeline

- [CSV validation](https://github.com/open-neovax-course/open-neovax/blob/main/logic/data_loader.py): `logic/data_loader.py`
- [Candidate record](https://github.com/open-neovax-course/open-neovax/blob/main/logic/types.py): `logic/types.py`
- [Module execution](https://github.com/open-neovax-course/open-neovax/blob/main/logic/orchestrator.py): `logic/orchestrator.py`
- [Normalization and ranking](https://github.com/open-neovax-course/open-neovax/blob/main/logic/scoring.py): `logic/scoring.py`

### Biological scoring

- [Physicochemical scores](https://github.com/open-neovax-course/open-neovax/tree/main/modules): `modules`
- [Processing scores](https://github.com/open-neovax-course/open-neovax/tree/main/modules): `modules`
- [HLA binding scores](https://github.com/open-neovax-course/open-neovax/tree/main/modules): `modules`
- [Safety and self scores](https://github.com/open-neovax-course/open-neovax/tree/main/modules): `modules`

### Analysis

- [Group model analyses](https://github.com/open-neovax-course/open-neovax/blob/main/analysis/groupe_01_model.py): `analysis/groupe_01_model.py`
- [Score analysis](https://github.com/open-neovax-course/open-neovax/blob/main/analysis/score_analysis.py): `analysis/score_analysis.py`

### Other components

- **Researcher**
- **Candidate CSV**

## Connections

- Researcher → Streamlit workflow: uses (evidence: `README.md`)
- Candidate CSV → Streamlit workflow: uploads or selects (evidence: `app.py`)
- Streamlit workflow → CSV validation: loads candidates (evidence: `app.py`)
- CSV validation → Candidate record: creates records (evidence: `logic/data_loader.py`)
- Streamlit workflow → Module execution: runs modules (evidence: `app.py`)
- Module execution → Physicochemical scores: executes discovered (evidence: `logic/orchestrator.py`)
- Module execution → Processing scores: executes discovered (evidence: `logic/orchestrator.py`)
- Module execution → HLA binding scores: executes discovered (evidence: `logic/orchestrator.py`)
- Module execution → Safety and self scores: executes discovered (evidence: `logic/orchestrator.py`)
- Streamlit workflow → Normalization and ranking: aggregates scores (evidence: `app.py`)
- Normalization and ranking → Ranked candidates: ranks candidates (evidence: `logic/scoring.py`)
- Streamlit workflow → Ranked candidates: displays details (evidence: `app.py`)
