Print

Print


Hi SPMers,

I just downloaded and installed the latest SPM5 and VBM5 in this afternoon. I can use them normally with GUI. However, I want to do some batch things to save my time. I tried it and met some problems.

I tried to run the example listed on the website only for testing. But it did not work.

I run “cg_vbm_batch.sh /usr/local/spm5/canonical/single_subj_T1.nii –s /usr/local/spm5”

I got such log file:

 

 

----------------------------------

Fri Jan 11 19:29:42 EST 2008

----------------------------------

 

/usr/local/spm5/toolbox/vbm5/cg_vbm_batch.sh /usr/local/spm5/canonical/single_subj_T1.nii

 

 

                              < M A T L A B >

                  Copyright 1984-2007 The MathWorks, Inc.

                         Version 7.5.0.338 (R2007b)

                               August 9, 2007

 

 

  To get started, type one of these: helpwin, helpdesk, or demo.

  For product information, visit www.mathworks.com.

 

--------------------------

Running "VBM: Estimate + Write"

Options:

                    Gaussians:            2 2 2 4

                  Warp cutoff:           25

          Warp regularisation:         1

          Bias regularisation:          0.0001

                    Bias FWHM:          70

                     Clean up: 1

                MRF weighting:         0.3

            Write affine only:           0

            Use tissue priors:          1

 

??? Error using ==> spm_slice_vol

Bad image handle dimensions.

 

Error in ==> spm_load_priors at 27

        tmp           = spm_slice_vol(B(k1),M,B(1).dim(1:2),0)*(1-lm*2)+lm;

 

Error in ==> cg_vbm at 68

b0        = spm_load_priors(B);

 

Error in ==> cg_config_vbm>execute_estwrite at 718

    res           = cg_vbm(job.data{i},job.opts);

 

Error in ==> spm_jobman>run_struct1 at 1585

        feval(prog,val);

 

Error in ==> spm_jobman>run_struct1 at 1595

            run_struct1(c.val{i},gui);

 

Error in ==> spm_jobman>run_struct1 at 1595

            run_struct1(c.val{i},gui);

 

Error in ==> spm_jobman>run_struct1 at 1595

            run_struct1(c.val{i},gui);

 

Error in ==> spm_jobman>run_job at 480

    run_struct1(c,gui);

 

Error in ==> spm_jobman at 95

            run_job(varargin{2},0);

 

Error in ==> cg_vbm_batch at 26

spm_jobman('run_nogui',jobs)

 

>> 

 

 

 

I don’t know where is wrong. Who can help me?

 

 

Cheers

 

Xiaochu Zhang Ph.D

Visiting Research Fellow

NIH/NIDA-IRP

5500 Nathan Shock Drive

Baltimore MD 21224

 

Tel: (410) - 550 - 1440 ext. 434