Skip to content

Commit bc9ea07

Browse files
authored
Update Python.md with spm-python
1 parent e184fe7 commit bc9ea07

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

docs/wikibooks/Python.md

+28-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
## SPM and Python
22

3-
### Nipype
3+
### Python interface to SPM
4+
5+
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/spm-python)
6+
![PyPI - License](https://img.shields.io/pypi/l/spm-python)
7+
![PyPI - Version](https://img.shields.io/pypi/v/spm-python)
8+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/spm/spm-python/.github%2Fworkflows%2Frun_unit_tests.yml)
9+
10+
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.
11+
12+
This project is supported by the SPM team and hosted on Github [here](https://github.com/spm/spm-python).
13+
14+
> [!WARNING]
15+
> This project is **currently under construction** and might contain bugs. **If you experience any issues, please [let us know](https://github.com/spm/spm-python/issues)!**
16+
17+
<br/>
18+
19+
---
20+
21+
### External projects
22+
#### Nipype
423

524
[Nipype](https://nipype.readthedocs.io/en/latest/) (Neuroimaging in
625
Python) has an [SPM
@@ -10,22 +29,18 @@ Tutorials can be found at:
1029

1130
- <https://miykael.github.io/nipype_tutorial/>
1231
- <https://pythonhosted.org/nipype/users/examples/fmri_spm_auditory.html>
32+
-
33+
#### spm1d
1334

14-
### Calling MATLAB from Python
15-
16-
- <https://www.mathworks.com/products/matlab/matlab-and-python.html>
17-
- <https://www.mathworks.com/help/matlab/matlab-engine-for-python.html>
35+
[spm1d](http://www.spm1d.org/) is a package for one-dimensional
36+
Statistical Parametric Mapping.
1837

19-
You can also call MATLAB in a subprocess:
38+
#### pymdp
2039

21-
- <https://docs.python.org/3/library/subprocess.html#module-subprocess>
40+
[pymdp](https://github.com/infer-actively/pymdp) is Python package for simulating Active Inference agents in Markov Decision Process environments --- building on MDP implementations in the DEM toolbox.
2241

23-
using the **-batch** (execute MATLAB script non-interactively) and
24-
**-sd** (set initial working directory) input argument options:
42+
#### dempy
2543

26-
- <https://www.mathworks.com/help/matlab/ref/matlablinux.html#buknt99-1-option1optionN>
44+
[dempy](https://github.com/johmedr/dempy) is Python implementation of the Dynamic Expectation Maximization algorithm.
2745

28-
### spm1d
2946

30-
[spm1d](http://www.spm1d.org/) is a package for one-dimensional
31-
Statistical Parametric Mapping.

0 commit comments

Comments
 (0)