How alleninstitute/bmtk works
Project type and purpose
• BMTK (Brain Modeling Toolkit) is an open‐source Python software suite (a library/CLI toolkit) for multiscale modeling of brain circuits.
• It provides three core functional areas:
• Builder: constructs network models (nodes, edges) from JSON configs into SONATA files (CSV, HDF5).
• Simulator: runs simulations at multiple levels of resolution (biophysical via NEURON, point‐neuron via NEST, filter network, population network).
• Analyzer: loads simulation outputs to compute firing rates, spike trains, cell variables, voltage traces, extracellular potentials, etc.
File structure
• Top‐level Python package: bmtk/ with subpackages:
• builder/ – network construction classes, I/O, network adapters, edge/node connectors
• simulator/ – bionet/, filternet/, pointnet/, popnet/, each with config schemas, modules, adapters
• analyzer/ – tools for loading and computing metrics on simulation results
• utils/ – helpers (HDF5, SONATA, reports, environment creation, mechanism compilation)
• Scripts and entry‐points: CLI wrappers under bmtk/utils/scripts/, bmtk/utils/sim_setup.py
• Configuration and data directories: examples, docs/examples, tutorials, Docker environment, CI workflows.
• Tests organized under tests/... mirroring each major component.
README for additional insights
• Confirms the three main workflows (build, simulate, analyze)
• Points to external dependencies (NEURON, NEST, SONATA file formats)
• Mentions documentation, examples, and testing via pytest
• Project uses Docker for reproducible environments and GitHub Actions for CI/CD