Thanks for that Torben - and sorry for the bugs. You might like to download the most recent patches (new as of 5 minutes ago) which should also fix these problems. Re user specified regressors - the automatic generation of contrast vectors may not work if there are user-specified regressors in the design. I've yet to test/fix this. In the mean time, if you have user-spec regs, you could turn the automatic contrast generation off. Best, Will. [log in to unmask] wrote: > Hi Will > > Finally I have found some time to try out the bayesian estimation in > SPM5b. However I did not get far before I got this error: > > >>>-------------------------- > > Running "fMRI model estimation" > Changing directory to: /Volumes/Corbusier/Data/F1757/Analysis/spm5/bayes/ > ??? Error while evaluating uicontrol Callback. > > > ??? Error: File: /Applications/LocalMatlab/spm5b/spm_design_contrasts.m > Line: 64 Column: 1 > "end" expected, "<" found. > > Error in ==> /Applications/LocalMatlab/spm5b/spm_config_fmri_est.m (run_est) > On line 538 ==> cons=spm_design_contrasts(SPM); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct1) > On line 1372 ==> feval(prog,val); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct1) > On line 1380 ==> run_struct1(c.val{i}); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct1) > On line 1380 ==> run_struct1(c.val{i}); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct) > On line 1339 ==> run_struct1(c); > > > > And when looking in spm_design_contrasts around line 538 I found the > following: > > f nf==2 > con(3).name=['Main effect of ',SPM.factor(2).name]; > <<<<<<< .mine > con(4).name=['Interaction between ',SPM.factor(1).name,' and > ',SPM.factor(2).name]; > end======= > con(4).name=['Interaction: ',SPM.factor(1).name,' x > ',SPM.factor(2).name]; > end > > > I changed it to: > > f nf==2 > con(3).name=['Main effect of ',SPM.factor(2).name]; > %<<<<<<< .mine > % con(4).name=['Interaction between ',SPM.factor(1).name,' and > ',SPM.factor(2).name]; > %end======= > con(4).name=['Interaction: ',SPM.factor(1).name,' x > ',SPM.factor(2).name]; > end > > and got the following: > > Running "fMRI model estimation" > Changing directory to: /Volumes/Corbusier/Data/F1757/Analysis/spm5/bayes/ > ??? Error while evaluating uicontrol Callback. > > > ??? Error: File: /Applications/LocalMatlab/spm5b/spm_design_contrasts.m > Line: 104 Column: 1 > "End of Input" expected, ">" found. > > Error in ==> /Applications/LocalMatlab/spm5b/spm_config_fmri_est.m (run_est) > On line 538 ==> cons=spm_design_contrasts(SPM); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct1) > On line 1372 ==> feval(prog,val); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct1) > On line 1380 ==> run_struct1(c.val{i}); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct1) > On line 1380 ==> run_struct1(c.val{i}); > > Error in ==> /Applications/LocalMatlab/spm5b/spm_jobman.m (run_struct) > On line 1339 ==> run_struct1(c); > > I then commented out line 1339: > > % What about user-specified regressors ?! - ignore for now > %>>>>>>> .r166 > > And now the job has started. I think what I have done should be harmless, > but will you check it? And what does that comment about user specified > regressors mean? > > Best > Torben > > P.S. I am currently unable to post this to the list, but feel free to do so. > > Torben E. Lund > Danish Research Centre for MR > Copenhagen University Hospital > Kettegaard Alli 30 > 2650 Hvidovre > Denmark > email: [log in to unmask] > webpage: http://www.drcmr.dk > > -- William D. Penny Wellcome Department of Imaging Neuroscience University College London 12 Queen Square London WC1N 3BG Tel: 020 7833 7475 FAX: 020 7813 1420 Email: [log in to unmask] URL: http://www.fil.ion.ucl.ac.uk/~wpenny/