# aai-research-lab/fastmdxplora architecture

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

- Interactive diagram: https://gitdiagram.com/aai-research-lab/fastmdxplora
- Repository: https://github.com/aai-research-lab/fastmdxplora

## Overview

FastMDXplora turns a PDB identifier or prepared structure into a reproducible molecular-dynamics study: configure and validate it, prepare the system, simulate, analyze trajectories, and produce reports. Users can initiate studies through the CLI, Python API, GUI, an AI agent, or MCP; batch sweeps and remote execution extend that workflow. The README documents the main stages and interfaces. Source excerpts and the index confirm selected calls, but do not expose every runtime connection, so unsampled relationships are omitted.

Main entry points: [`src/fastmdxplora/orchestrator.py`](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/orchestrator.py) (Study orchestrator), [`src/fastmdxplora/simulation/pipeline.py`](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/pipeline.py) (Simulation workflow), [`src/fastmdxplora/config/loader.py`](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/config/loader.py) (Config validation), [`src/fastmdxplora/cli/main.py`](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/cli/main.py) (CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Study interfaces"]
  node_cli["CLI<br/>[main.py]"]
  node_gui["Study GUI<br/>[server.py]"]
  node_agent["Study agent"]
  node_mcp["MCP server<br/>[app.py]"]
end

subgraph group_control["Configuration and orchestration"]
  node_config["Config validation<br/>[loader.py]"]
  node_schema["Study schema<br/>[schema.py]"]
  node_orchestrator["Study orchestrator<br/>[orchestrator.py]"]
  node_refusals["Scientific refusals<br/>[refusals.py]"]
end

subgraph group_science["Simulation science"]
  node_setup["System preparation<br/>[pipeline.py]"]
  node_simulation["Simulation workflow<br/>[pipeline.py]"]
  node_runner["OpenMM runner<br/>[runner.py]"]
  node_enhanced["Enhanced sampling<br/>[umbrella.py]"]
  node_metadynamics["Metadynamics<br/>[metadynamics.py]"]
end

subgraph group_results["Analysis and results"]
  node_analysis["Trajectory analysis<br/>[orchestrator.py]"]
  node_plots["Analysis plots<br/>[plotting.py]"]
  node_reports["Study reports"]
  node_manifest["Run manifest<br/>[provenance.py]"]
end

subgraph group_extensions["Scale and integrations"]
  node_batch["Batch sweeps<br/>[sweep.py]"]
  node_remote["Remote execution<br/>[send.py]"]
end

node_user(("Researcher"))
node_ai_app(("AI application"))

node_user -->|"invokes"| node_cli
node_user -->|"configures"| node_gui
node_user -->|"requests study"| node_agent
node_ai_app -->|"connects"| node_mcp
node_cli -->|"loads config"| node_config
node_gui -->|"starts study"| node_orchestrator
node_agent -->|"validates proposal"| node_config
node_mcp -->|"validates study"| node_config
node_config -->|"checks against"| node_schema
node_config -->|"supplies settings"| node_orchestrator
node_orchestrator -->|"runs phase"| node_setup
node_orchestrator -->|"runs phase"| node_simulation
node_orchestrator -->|"runs phase"| node_analysis
node_orchestrator -->|"runs phase"| node_reports
node_simulation -->|"delegates simulation"| node_runner
node_simulation -.->|"supports umbrella"| node_enhanced
node_simulation -.->|"supports metadynamics"| node_metadynamics
node_analysis -->|"creates plots"| node_plots
node_orchestrator -.->|"records provenance"| node_manifest
node_orchestrator -->|"runs batch"| node_batch
node_user -.->|"runs remotely"| node_remote
node_setup -.->|"reports refusal"| node_refusals
node_simulation -.->|"reports refusal"| node_refusals

click node_cli "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/cli/main.py"
click node_gui "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/gui/server.py"
click node_agent "https://github.com/aai-research-lab/fastmdxplora/tree/main/src/fastmdxplora/agent"
click node_mcp "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/mcp/app.py"
click node_config "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/config/loader.py"
click node_schema "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/config/schema.py"
click node_orchestrator "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/orchestrator.py"
click node_setup "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/setup/pipeline.py"
click node_simulation "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/pipeline.py"
click node_runner "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/runner.py"
click node_enhanced "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/umbrella.py"
click node_metadynamics "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/metadynamics.py"
click node_analysis "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/analysis/orchestrator.py"
click node_plots "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/analysis/plotting.py"
click node_reports "https://github.com/aai-research-lab/fastmdxplora/tree/main/src/fastmdxplora/report"
click node_manifest "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/provenance.py"
click node_batch "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/batch/sweep.py"
click node_remote "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/remote/send.py"
click node_refusals "https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/refusals.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_cli,node_gui,node_agent,node_mcp toneBlue
class node_config,node_schema,node_orchestrator,node_refusals toneAmber
class node_setup,node_simulation,node_runner,node_enhanced,node_metadynamics toneMint
class node_analysis,node_plots,node_reports,node_manifest toneRose
class node_batch,node_remote,node_user,node_ai_app toneIndigo
```

## Components

### Study interfaces

- [CLI](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/cli/main.py): `src/fastmdxplora/cli/main.py`
- [Study GUI](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/gui/server.py): `src/fastmdxplora/gui/server.py`
- [Study agent](https://github.com/aai-research-lab/fastmdxplora/tree/main/src/fastmdxplora/agent): `src/fastmdxplora/agent`
- [MCP server](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/mcp/app.py): `src/fastmdxplora/mcp/app.py`

### Configuration and orchestration

- [Config validation](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/config/loader.py): `src/fastmdxplora/config/loader.py`
- [Study schema](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/config/schema.py): `src/fastmdxplora/config/schema.py`
- [Study orchestrator](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/orchestrator.py): `src/fastmdxplora/orchestrator.py`
- [Scientific refusals](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/refusals.py): `src/fastmdxplora/refusals.py`

### Simulation science

- [System preparation](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/setup/pipeline.py): `src/fastmdxplora/setup/pipeline.py`
- [Simulation workflow](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/pipeline.py): `src/fastmdxplora/simulation/pipeline.py`
- [OpenMM runner](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/runner.py): `src/fastmdxplora/simulation/runner.py`
- [Enhanced sampling](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/umbrella.py): `src/fastmdxplora/simulation/umbrella.py`
- [Metadynamics](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/simulation/metadynamics.py): `src/fastmdxplora/simulation/metadynamics.py`

### Analysis and results

- [Trajectory analysis](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/analysis/orchestrator.py): `src/fastmdxplora/analysis/orchestrator.py`
- [Analysis plots](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/analysis/plotting.py): `src/fastmdxplora/analysis/plotting.py`
- [Study reports](https://github.com/aai-research-lab/fastmdxplora/tree/main/src/fastmdxplora/report): `src/fastmdxplora/report`
- [Run manifest](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/provenance.py): `src/fastmdxplora/provenance.py`

### Scale and integrations

- [Batch sweeps](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/batch/sweep.py): `src/fastmdxplora/batch/sweep.py`
- [Remote execution](https://github.com/aai-research-lab/fastmdxplora/blob/main/src/fastmdxplora/remote/send.py): `src/fastmdxplora/remote/send.py`

### Other components

- **Researcher**
- **AI application**

## Connections

- Researcher → CLI: invokes (evidence: `README.md`)
- Researcher → Study GUI: configures (evidence: `README.md`)
- Researcher → Study agent: requests study (evidence: `README.md`)
- AI application → MCP server: connects (evidence: `README.md`)
- CLI → Config validation: loads config (evidence: `src/fastmdxplora/cli/main.py`)
- Study GUI → Study orchestrator: starts study (evidence: `README.md`)
- Study agent → Config validation: validates proposal (evidence: `README.md`)
- MCP server → Config validation: validates study (evidence: `README.md`)
- Config validation → Study schema: checks against (evidence: `src/fastmdxplora/config/loader.py`)
- Config validation → Study orchestrator: supplies settings (evidence: `src/fastmdxplora/config/loader.py`)
- Study orchestrator → System preparation: runs phase (evidence: `src/fastmdxplora/setup/pipeline.py`)
- Study orchestrator → Simulation workflow: runs phase (evidence: `src/fastmdxplora/simulation/pipeline.py`)
- Study orchestrator → Trajectory analysis: runs phase (evidence: `README.md`)
- Study orchestrator → Study reports: runs phase (evidence: `README.md`)
- Simulation workflow → OpenMM runner: delegates simulation (evidence: `src/fastmdxplora/simulation/pipeline.py`)
- Simulation workflow → Enhanced sampling: supports umbrella (evidence: `README.md`)
- Simulation workflow → Metadynamics: supports metadynamics (evidence: `README.md`)
- Trajectory analysis → Analysis plots: creates plots (evidence: `src/fastmdxplora/analysis/orchestrator.py`)
- Study orchestrator → Run manifest: records provenance (evidence: `README.md`)
- Study orchestrator → Batch sweeps: runs batch (evidence: `src/fastmdxplora/orchestrator.py`)
- Researcher → Remote execution: runs remotely (evidence: `README.md`)
- System preparation → Scientific refusals: reports refusal (evidence: `src/fastmdxplora/setup/pipeline.py`)
- Simulation workflow → Scientific refusals: reports refusal (evidence: `src/fastmdxplora/simulation/pipeline.py`)
