Multiple versions of SPM

87 views
Skip to first unread message

parnesh...@gmail.com

unread,
Sep 21, 2014, 10:18:34 PM9/21/14
to nipy...@googlegroups.com
Is it possible to have multiple versions of SPM in the matlab path and choose appropriate version from the nipype script? I would like to have spm8 and spm12b available.

Satrajit Ghosh

unread,
Sep 23, 2014, 10:09:14 AM9/23/14
to nipy-user
Is it possible to have multiple versions of SPM in the matlab path and choose appropriate version from the nipype script? I would like to have spm8 and spm12b available.

yes from within nipype but you should not add them to the matlab's path.


to set globally for all matlab interfaces:

from nipype.interfaces import matlab as mlab
mlab.MatlabCommand.set_default_paths('/cm/shared/openmind/spm/spm12b/spm12b_r5918/')

to set for all spm interfaces:

from nipype.interfaces import spm
spm.SPMCommand.set_mlab_paths(paths='/cm/shared/openmind/spm/spm12b/spm12b_r5918/')

to set for a specific node:

spm_node.inputs.paths = '/cm/shared/openmind/spm/spm12b/spm12b_r5918/'

the global options should be set before any spm or matlab interface is imported (typically at the top of the script)

cheers,

satra

parnesh...@gmail.com

unread,
Sep 23, 2014, 10:31:54 AM9/23/14
to nipy...@googlegroups.com
Ah I see, I was setting the paths in matlab. Thanks.
Reply all
Reply to author
Forward
0 new messages