Skip to content

Python

SPM and Python

Python interface to SPM

PyPI - Python Version PyPI - License PyPI - Version GitHub Actions Workflow Status

We have developed a Python interface that enable performing SPM analyses in Python. The package provides an intuitive Python interface to SPM. Under the hood, the package does not reimplement SPM functions but rather relies on Matlab Runtime to execute the SPM routines - guaranteeing that the results are numerically consistent with established Matlab routines.

This project is supported by the SPM team and hosted on Github here.

[!WARNING] This project is currently under construction and might contain bugs. If you experience any issues, please let us know!



External projects

Nipype

Nipype (Neuroimaging in Python) has an SPM interface.

Tutorials can be found at:

spm1d

spm1d is a package for one-dimensional Statistical Parametric Mapping.

pymdp

pymdp is Python package for simulating Active Inference agents in Markov Decision Process environments — building on MDP implementations in the DEM toolbox.

dempy

dempy is Python implementation of the Dynamic Expectation Maximization algorithm.