# maybebio/znf263_cpcdh_sim architecture

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

- Interactive diagram: https://gitdiagram.com/maybebio/znf263_cpcdh_sim
- Repository: https://github.com/maybebio/znf263_cpcdh_sim

## Overview

This repository is a reproducible molecular-dynamics study of ZNF263 zinc-finger protein bound to DNA, rather than a conventional application. The principal workflow prepares a protein–DNA structure, parameterizes and solvates it, runs GROMACS equilibration and production replicas, then analyzes structural stability and protein–DNA contacts. The tree and excerpts show these stages and several analysis capabilities; many preparation and run relationships are inferred from directory names and artifacts, so those edges are dashed. The README identifies ZAFF, AmberTools, and GROMACS, but does not document exact commands between stages.

Main entry points: [`06_Production_MD`](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/06_Production_MD) (Production replicas), [`06_Production_MD/100ns`](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/06_Production_MD/100ns) (Analysis results), [`06_Production_MD/scripts/04_contact_occupancy.py`](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/04_contact_occupancy.py) (Contact occupancy), [`06_Production_MD/scripts/structure_summary.py`](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/structure_summary.py) (Structural summaries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_structure["Structure preparation"]
  node_starting["Starting structures"]
  node_prepared["Prepared complex"]
end

subgraph group_simulation["System and simulation"]
  node_zaff["ZAFF parameters"]
  node_solvated["Solvated system"]
  node_gmx_top["GROMACS topology"]
  node_included_top["Included topology"]
  node_equil["Energy minimization and equilibration"]
  node_production["Production replicas"]
end

subgraph group_analysis["Trajectory analysis"]
  node_groups["Analysis groups"]
  node_contact_maps["ZF–DNA contacts"]
  node_occupancy["Contact occupancy"]
  node_structure_analysis["Structural summaries"]
end

subgraph group_interpretation["Results and interpretation"]
  node_joint["Joint occupancy"]
  node_mode["Representative contact frame"]
  node_plots["Analysis plots<br/>[plot_matrices.py]"]
  node_statistics["Time-series statistics<br/>[xvg_stats.py]"]
  node_results["Analysis results"]
end

node_researcher(("Researcher"))
node_amber["AmberTools"]
node_gromacs["GROMACS"]

node_researcher -.->|"selects structure"| node_starting
node_starting -.->|"prepare complex"| node_prepared
node_prepared -.->|"parameterize"| node_zaff
node_amber -.->|"provides tools"| node_zaff
node_zaff -.->|"build and solvate"| node_solvated
node_solvated -.->|"convert topology"| node_gmx_top
node_gmx_top -.->|"include restraints"| node_included_top
node_included_top -.->|"initialize runs"| node_equil
node_gromacs -.->|"runs stages"| node_equil
node_equil -.->|"initialize replicas"| node_production
node_gromacs -.->|"runs dynamics"| node_production
node_production -.->|"provides structure"| node_groups
node_production -.->|"provides trajectories"| node_contact_maps
node_production -.->|"provides trajectories"| node_occupancy
node_production -.->|"provides trajectory data"| node_structure_analysis
node_occupancy -->|"reads contact matrix"| node_joint
node_occupancy -->|"supplies contact frames"| node_mode
node_structure_analysis -.->|"supplies cluster medoid"| node_mode
node_structure_analysis -->|"provides matrix parser"| node_plots
node_contact_maps -.->|"writes contact summaries"| node_results
node_occupancy -.->|"writes occupancy summaries"| node_results
node_joint -.->|"writes joint summaries"| node_results
node_structure_analysis -.->|"writes structural summaries"| node_results
node_plots -.->|"writes plots"| node_results
node_statistics -.->|"summarizes time series"| node_results

click node_starting "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/01_Prepare_Init_Structure"
click node_prepared "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/01_Prepare_Init_Structure"
click node_zaff "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/02_Prepare_ZAFF"
click node_solvated "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/02_Prepare_ZAFF"
click node_gmx_top "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/03_Gmx_topology"
click node_included_top "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/04_Gmx_topology_included"
click node_equil "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/05_Gmx_pre_simulation"
click node_production "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/06_Production_MD"
click node_groups "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/00_make_analysis_groups_zf69.py"
click node_contact_maps "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/03_zf_dna_contacts_zf69.py"
click node_occupancy "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/04_contact_occupancy.py"
click node_structure_analysis "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/structure_summary.py"
click node_joint "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/05_joint_occupancy.py"
click node_mode "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/06_pick_mode_frame.py"
click node_plots "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/plot_matrices.py"
click node_statistics "https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/xvg_stats.py"
click node_results "https://github.com/maybebio/znf263_cpcdh_sim/tree/main/06_Production_MD/100ns"

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_starting,node_prepared toneBlue
class node_zaff,node_solvated,node_gmx_top,node_included_top,node_equil,node_production toneAmber
class node_groups,node_contact_maps,node_occupancy,node_structure_analysis toneMint
class node_joint,node_mode,node_plots,node_statistics,node_results toneRose
class node_researcher,node_amber,node_gromacs toneIndigo
```

## Components

### Structure preparation

- [Starting structures](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/01_Prepare_Init_Structure): `01_Prepare_Init_Structure`
- [Prepared complex](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/01_Prepare_Init_Structure): `01_Prepare_Init_Structure`

### System and simulation

- [ZAFF parameters](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/02_Prepare_ZAFF): `02_Prepare_ZAFF`
- [Solvated system](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/02_Prepare_ZAFF): `02_Prepare_ZAFF`
- [GROMACS topology](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/03_Gmx_topology): `03_Gmx_topology`
- [Included topology](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/04_Gmx_topology_included): `04_Gmx_topology_included`
- [Energy minimization and equilibration](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/05_Gmx_pre_simulation): `05_Gmx_pre_simulation`
- [Production replicas](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/06_Production_MD): `06_Production_MD`

### Trajectory analysis

- [Analysis groups](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/00_make_analysis_groups_zf69.py): `06_Production_MD/scripts/00_make_analysis_groups_zf69.py`
- [ZF–DNA contacts](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/03_zf_dna_contacts_zf69.py): `06_Production_MD/scripts/03_zf_dna_contacts_zf69.py`
- [Contact occupancy](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/04_contact_occupancy.py): `06_Production_MD/scripts/04_contact_occupancy.py`
- [Structural summaries](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/structure_summary.py): `06_Production_MD/scripts/structure_summary.py`

### Results and interpretation

- [Joint occupancy](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/05_joint_occupancy.py): `06_Production_MD/scripts/05_joint_occupancy.py`
- [Representative contact frame](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/06_pick_mode_frame.py): `06_Production_MD/scripts/06_pick_mode_frame.py`
- [Analysis plots](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/plot_matrices.py): `06_Production_MD/scripts/plot_matrices.py`
- [Time-series statistics](https://github.com/maybebio/znf263_cpcdh_sim/blob/main/06_Production_MD/scripts/xvg_stats.py): `06_Production_MD/scripts/xvg_stats.py`
- [Analysis results](https://github.com/maybebio/znf263_cpcdh_sim/tree/main/06_Production_MD/100ns): `06_Production_MD/100ns`

### Other components

- **Researcher**
- **AmberTools**
- **GROMACS**

## Connections

- Researcher → Starting structures: selects structure
- Starting structures → Prepared complex: prepare complex
- Prepared complex → ZAFF parameters: parameterize
- AmberTools → ZAFF parameters: provides tools
- ZAFF parameters → Solvated system: build and solvate
- Solvated system → GROMACS topology: convert topology
- GROMACS topology → Included topology: include restraints
- Included topology → Energy minimization and equilibration: initialize runs
- GROMACS → Energy minimization and equilibration: runs stages (evidence: `README.md`)
- Energy minimization and equilibration → Production replicas: initialize replicas
- GROMACS → Production replicas: runs dynamics (evidence: `README.md`)
- Production replicas → Analysis groups: provides structure
- Production replicas → ZF–DNA contacts: provides trajectories
- Production replicas → Contact occupancy: provides trajectories
- Production replicas → Structural summaries: provides trajectory data (evidence: `06_Production_MD/scripts/plot_matrices.py`)
- Contact occupancy → Joint occupancy: reads contact matrix (evidence: `06_Production_MD/scripts/05_joint_occupancy.py`)
- Contact occupancy → Representative contact frame: supplies contact frames (evidence: `06_Production_MD/scripts/06_pick_mode_frame.py`)
- Structural summaries → Representative contact frame: supplies cluster medoid
- Structural summaries → Analysis plots: provides matrix parser (evidence: `06_Production_MD/scripts/plot_matrices.py`)
- ZF–DNA contacts → Analysis results: writes contact summaries
- Contact occupancy → Analysis results: writes occupancy summaries
- Joint occupancy → Analysis results: writes joint summaries
- Structural summaries → Analysis results: writes structural summaries
- Analysis plots → Analysis results: writes plots
- Time-series statistics → Analysis results: summarizes time series
