Montage Concord

A modular SEEG simulation and analysis framework — documentation home

Montage Concord is a Python framework for working with stereotactic EEG (SEEG) data. It is organized as a collection of independent sub-packages that together form a complete pipeline: reading data from disk → re-referencing → computing metrics → visualizing results → fitting neural models.

Current Status The visualization pipeline is complete (EDF reading, re-referencing, metric computation, interactive dashboard) and the modeling pipeline has begun: the Model ABC, shared numerical utilities, and the first neural mass model (Jansen-Rit) are implemented. Model fitting and additional models are next.

Where to Start

If you are new, read in this order:

All Packages

PackagePurposeStatus
concord-coreContainers (Recording, MetricResult, ParameterVector, ModelOutput), Metric & Model ABCsImplemented
concord-ioEDF/BIDS reader, re-referencing, epoch slicingImplemented
concord-metrics-utilsWindowing, filtering, analytic signal primitivesImplemented
concord-metrics-univariateLine length, Hjorth parametersImplemented
concord-metrics-spectralWelch PSD, band powerImplemented
concord-vizTimeseries, spectrogram, PSD, metric preparation for frontendImplemented
concord-serverFastAPI server + browser-based dashboardImplemented
Frontend (JS)ES module JS: panels, Plotly rendering, 3D brainImplemented
concord-demoStandalone static demo with pre-baked SEEG data (GitHub Pages)Implemented
concord-fitOptimization engine for model fittingPlanned
concord-connectomeStructural connectivity, parcellation, contact mappingPlanned
concord-models-utilsODE integrators, noise, sigmoid functionsImplemented
concord-model-jansen-ritJansen-Rit cortical column model (alpha rhythm)Implemented
concord-model-*Wendling, Epileptor, Robinson modelsPlanned
concord-metrics-connectivityPLV, coherence, Granger causality, PAC…Planned
concord-metrics-eventSpike detection, seizure pattern classificationPlanned
concord-metrics-networkGraph metrics, epileptogenicity indexPlanned
concord-metrics-nonlinearSample entropy, Lyapunov exponents, DFAPlanned

Background Reading

Not familiar with some of the design patterns used? These pages explain them from first principles:

Quick-Start: Running the Server

# Activate the environment
conda activate concord

# Start the server
conda run -n concord python -m concord_server.server
# Then open http://localhost:8000 in a browser

# Or use the convenience script at the project root
python serve.py

Once loaded, use the file browser to open an EDF file, switch montage modes, apply notch filtering, and explore the multi-panel visualization dashboard.