[<< wikibooks] SPM/Python
== SPM and Python ==


=== Nipype ===
Nipype (Neuroimaging in Python) has an SPM interface.
Tutorials can be found at:

https://miykael.github.io/nipype_tutorial/
https://pythonhosted.org/nipype/users/examples/fmri_spm_auditory.html


=== Calling MATLAB from Python ===
https://www.mathworks.com/products/matlab/matlab-and-python.html
https://www.mathworks.com/help/matlab/matlab-engine-for-python.htmlYou can also call MATLAB in a subprocess:

https://docs.python.org/3/library/subprocess.html#module-subprocessusing the -batch (execute MATLAB script non-interactively) and -sd (set initial working directory) input argument options:

https://www.mathworks.com/help/matlab/ref/matlablinux.html#buknt99-1-option1optionN


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