The spm functions do well with full version of matlab and nipype setup , but I can find a way to implement the spm functions with MCR and nipype setup.
So I currently am implementing VBM (basic steps: reorientation, segmentation, normalization, smoothing) on some structural t1w niftis and I am using nipype , MCR and spm12 standalone to achieve this. So my spm12 standalone uses Matlab common runtime in nipype.
from nipype.interfaces import spm
matlab_cmd=’/opt/spm12/run_spm12.sh /opt/mcr/v95 script’, use_mcr=True)
and I am able to run my vbm pipeline fully just fine.
I currently pass reorientaion parameters like (x,y,z,pitch roll,yaw) in a .mat file as that is the only option which is given by the function nipype.interfaces.spm.utils.applytransform()
The goal is: I want to be able to pass reorientation parameters as arguments without needing a .mat file as input. The applytransform() does not allow that, so I am trying to implement the spm_imatrix() function as you said, but its implementation under MCR is not doable as of my knowledge. I know that custom spm functions under a regular matlab work fine, the problem is using MCR .
So if you can help , please let me know how to implement spm_imatrix() with MCR.