/neuroflow:brain-run¶
Run a computational brain model simulation โ configure run parameters, launch, and collect outputs.
/brain-run handles everything after the model is built: configuring a run, launching the simulation, inspecting outputs, and saving results.
When to use it¶
- You want to run a simulation of an assembled model
- You need to configure simulation duration, time step, and recording targets
- You want to submit a run to HPC or a cluster
- You need to inspect and summarise simulation outputs
What it does¶
Claude asks:
- Which model to run โ path to model code, or picks it up from
.neuroflow/brain-build/ - What simulation duration and time step
- What inputs / stimuli to apply during this run
- What outputs to record (spike trains, membrane voltage, LFP, population rate, BOLD signal)
- Run locally or submit to HPC/cluster
Steps¶
- Write
run-config.mdโ model path, duration, dt, inputs, recording targets, output directory - Confirm or generate a run script (
run_sim.pyor equivalent) that loads the model and applies the run config - Run the simulation (or prepare the HPC submission script)
- After the run: load and inspect outputs โ check for obvious errors (no spikes, unbounded activity, NaN values), produce a brief summary plot or statistics
- Write
run-summary.mdโ duration, time step, key output statistics (mean firing rate, dominant frequency), path to output files
Configs and summaries go to .neuroflow/brain-run/. Simulation output files (spike data, voltage traces, figures) go to models/results/.
Files read and written¶
| Direction | Files |
|---|---|
| Reads | .neuroflow/project_config.md, .neuroflow/flow.md, .neuroflow/brain-run/flow.md, .neuroflow/brain-build/flow.md |
| Writes | .neuroflow/brain-run/, .neuroflow/brain-run/flow.md, .neuroflow/sessions/YYYY-MM-DD.md, models/results/ (simulation outputs) |
Related commands¶
/brain-buildโ assemble the model before running/brain-optimizeโ fit parameters before a final run