2 Jul 16:43
scripting marsbar with spm5 models
From: Roland Marcus Rutschmann <Roland.Rutschmann <at> psychologie.uni-regensburg.de>
Subject: scripting marsbar with spm5 models
Newsgroups: gmane.comp.graphics.spm.marsbar
Date: 2008-07-02 14:43:57 GMT
Subject: scripting marsbar with spm5 models
Newsgroups: gmane.comp.graphics.spm.marsbar
Date: 2008-07-02 14:43:57 GMT
Hi,
it just took me some time to get my scripting working with severall subjects
sharing the same model (spm5).
The critical code part is this: i is a variable eg i='VP_02'
cd(['fMRI2/my_project/' i '/roi_analysis']);
roi_model=mardo('/fMRI2/my_project/VP_01/ind_analysis_2/SPM.mat');
P=spm_select('FPList','../nifti','^swf.*\.img');
V=spm_vol(P);
set_images(roi_model,V);
this didn't work because marsbar chose set_images for the @mardo_99/ directory
instead of the @mardo_2 directory (there is no such file in the @mardo_5
directory).
I did a workaround as: (using the source code of set_images in @mardo_2:
D = des_struct(roi_model);
D.xY.VY = V;
D.xY.P = strvcat(V(:).fname);
roi_model = des_struct(roi_model, D);
which seems to work.
Unless I totally missed something I would suggest to copy or link all
functions not available in @mardo_5 from @mardo_2
Or is there something I overlooked?
Using marsbar 0.41, spm5 with the lates Updates and matlab 2007b.
(Continue reading)
RSS Feed