# modeldbrepository/239421 architecture

> Architecture diagram of the GitHub repository modeldbrepository/239421, 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/modeldbrepository/239421
- Repository: https://github.com/modeldbrepository/239421

## Overview

This repository is a NEURON/Python biophysical Purkinje-cell model and a runnable protocol for studying excitation/inhibition burst-pause responses. The main workflow configures a cell, creates parallel-fiber, ascending-axon and stellate-cell inputs, runs a fixed-step simulation, then saves and plots somatic voltage. The README also documents Zebrin variants and multicore simulation. Source excerpts establish protocol-to-cell invocation and cell use of synapse and parameter modules; detailed wiring for unsampled model operations is omitted.

Main entry points: [`protocols/01_PFAA.py`](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py) (PFAA protocol), [`Purkinje_py3.py`](https://github.com/modeldbrepository/239421/blob/master/Purkinje_py3.py) (Cell template), [`Syntype_py3.py`](https://github.com/modeldbrepository/239421/blob/master/Syntype_py3.py) (Synapse construction), [`PC_param.py`](https://github.com/modeldbrepository/239421/blob/master/PC_param.py) (Conductance parameters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_protocol["Simulation protocol"]
  node_protocolrun["PFAA protocol<br/>[01_PFAA.py]"]
  node_pfinput["Parallel fiber input<br/>[01_PFAA.py]"]
  node_aainput["Ascending axon input<br/>[01_PFAA.py]"]
  node_stlinput["Stellate input<br/>[01_PFAA.py]"]
  node_results["Voltage output<br/>[01_PFAA.py]"]
  node_parallel["Multicore execution<br/>[01_PFAA.py]"]
end

subgraph group_cellmodel["Purkinje cell model"]
  node_cell["Cell template<br/>[Purkinje_py3.py]"]
  node_parameters["Conductance parameters<br/>[PC_param.py]"]
  node_morphology["Dendritic morphology<br/>[connections.csv]"]
  node_subset["Dendrite subsets"]
  node_mechanisms["Ion-channel mechanisms"]
end

subgraph group_synapse["Synaptic mechanisms"]
  node_synapses["Synapse construction<br/>[Syntype_py3.py]"]
end

node_researcher(("Researcher"))
node_neuron["NEURON runtime"]

node_researcher -->|"runs"| node_protocolrun
node_protocolrun -->|"instantiates"| node_cell
node_cell -->|"reads parameters"| node_parameters
node_cell -->|"imports"| node_synapses
node_cell -->|"loads connections"| node_morphology
node_cell -->|"loads subsets"| node_subset
node_protocolrun -->|"creates synapses"| node_cell
node_protocolrun -->|"configures bursts"| node_pfinput
node_protocolrun -->|"configures bursts"| node_aainput
node_protocolrun -->|"configures bursts"| node_stlinput
node_cell -.->|"inserts channels"| node_mechanisms
node_protocolrun -->|"enables multisplit"| node_parallel
node_protocolrun -->|"runs simulation"| node_neuron
node_protocolrun -->|"saves voltage"| node_results
node_synapses -->|"creates synapses"| node_neuron

click node_protocolrun "https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py"
click node_cell "https://github.com/modeldbrepository/239421/blob/master/Purkinje_py3.py"
click node_parameters "https://github.com/modeldbrepository/239421/blob/master/PC_param.py"
click node_morphology "https://github.com/modeldbrepository/239421/blob/master/connections.csv"
click node_subset "https://github.com/modeldbrepository/239421/blob/master/ModelViewParmSubset.txt"
click node_synapses "https://github.com/modeldbrepository/239421/blob/master/Syntype_py3.py"
click node_pfinput "https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py"
click node_aainput "https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py"
click node_stlinput "https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py"
click node_mechanisms "https://github.com/modeldbrepository/239421/tree/master/mod_files"
click node_results "https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py"
click node_parallel "https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.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_protocolrun,node_pfinput,node_aainput,node_stlinput,node_results,node_parallel toneBlue
class node_cell,node_parameters,node_morphology,node_subset,node_mechanisms toneAmber
class node_synapses toneMint
class node_researcher,node_neuron toneIndigo
```

## Components

### Simulation protocol

- [PFAA protocol](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py): `protocols/01_PFAA.py`
- [Parallel fiber input](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py): `protocols/01_PFAA.py`
- [Ascending axon input](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py): `protocols/01_PFAA.py`
- [Stellate input](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py): `protocols/01_PFAA.py`
- [Voltage output](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py): `protocols/01_PFAA.py`
- [Multicore execution](https://github.com/modeldbrepository/239421/blob/master/protocols/01_PFAA.py): `protocols/01_PFAA.py`

### Purkinje cell model

- [Cell template](https://github.com/modeldbrepository/239421/blob/master/Purkinje_py3.py): `Purkinje_py3.py`
- [Conductance parameters](https://github.com/modeldbrepository/239421/blob/master/PC_param.py): `PC_param.py`
- [Dendritic morphology](https://github.com/modeldbrepository/239421/blob/master/connections.csv): `connections.csv`
- [Dendrite subsets](https://github.com/modeldbrepository/239421/blob/master/ModelViewParmSubset.txt): `ModelViewParmSubset.txt`
- [Ion-channel mechanisms](https://github.com/modeldbrepository/239421/tree/master/mod_files): `mod_files`

### Synaptic mechanisms

- [Synapse construction](https://github.com/modeldbrepository/239421/blob/master/Syntype_py3.py): `Syntype_py3.py`

### Other components

- **Researcher**
- **NEURON runtime**

## Connections

- Researcher → PFAA protocol: runs (evidence: `readme.html`)
- PFAA protocol → Cell template: instantiates (evidence: `protocols/01_PFAA.py`)
- Cell template → Conductance parameters: reads parameters (evidence: `Purkinje_py3.py`)
- Cell template → Synapse construction: imports (evidence: `Purkinje_py3.py`)
- Cell template → Dendritic morphology: loads connections (evidence: `Purkinje_py3.py`)
- Cell template → Dendrite subsets: loads subsets (evidence: `Purkinje_py3.py`)
- PFAA protocol → Cell template: creates synapses (evidence: `protocols/01_PFAA.py`)
- PFAA protocol → Parallel fiber input: configures bursts (evidence: `protocols/01_PFAA.py`)
- PFAA protocol → Ascending axon input: configures bursts (evidence: `protocols/01_PFAA.py`)
- PFAA protocol → Stellate input: configures bursts (evidence: `protocols/01_PFAA.py`)
- Cell template → Ion-channel mechanisms: inserts channels
- PFAA protocol → Multicore execution: enables multisplit (evidence: `protocols/01_PFAA.py`)
- PFAA protocol → NEURON runtime: runs simulation (evidence: `protocols/01_PFAA.py`)
- PFAA protocol → Voltage output: saves voltage (evidence: `protocols/01_PFAA.py`)
- Synapse construction → NEURON runtime: creates synapses (evidence: `Syntype_py3.py`)
