Hi Daniel, list,
the main issue with our spm2 batch engine is that the syntax of the
input structure has to be exactly as described in the help text (type
'help spm_batch'). The latest version from the website does do some
input format checking, but there are too much things that can go wrong
to be able to trap them all...
From your error message it seems that the name of your modelled
condition was not specified as a cell array. E.g., specify the names of
your conditions in the batch structure you use (say, SPMBATCH) as:
SPMBATCH.names=struct('names',{{'rest','hand2', .... }});
That should do the trick.
Christian just suggested something similar.
This was the handiest manner to pass info to the core spm functions,
that want it that way.
Sometimes the quickest way to debug a batch script for our batch engine
is to set a breakpoint in the first function of the error message (where
the error really occurs), and see what goes wrong by inspecting the
variabel values. Looking at your own batch script directly to look for
the error can be like searching the needle in the haystack.
Takes a bit of matlab skills, but once you have a working version things
are great and automagically.
By the way, it does not look like we will do much more updating to the
spm2 batch engine anymore, because we are close to switching to spm5
that has a nice job-manager seemingly doing something similar, and with
a GUI. Thanks for saving us the hassle of writing an spm5 batch engine
folks!
Good luck,
Bas
Daniel Simmonds schreef:
> Hi all,
> I am trying to use Bas Neggers script to batch an spm2 analysis, and am
> apparently failing. I have debugged through many errors, and am finally
> stuck on this one during modeling (preprocessing was no problem). The error
> is below, and I've also attached the two batch files I am using to run the
> analysis (pardon the sloppy coding). I am using Matlab v6.1 and spm2. Any
> help is appreciated. Thanks!
>
> Daniel
>
> SPM2: spm_fmri_design (v2.34) 19:07:01 - 18/10/2006
> ----------------------------------------------------------------
> ??? Cell contents reference from a non-cell array object.
>
> Error in ==> c:\spm2\spm_Volterra.m
> On line 51 ==> str = sprintf('%s*bf(%i)',U(i).name{k},p);
>
> Error in ==> c:\spm2\spm_fMRI_design.m
> On line 271 ==> [X,Xn,Fc] = spm_Volterra(U,bf,V);
>
> Error in ==> c:\spm2_updates\spm_fmri_spm_ui.m
> On line 209 ==> SPM = spm_fMRI_design(SPM);
>
> Error in ==> c:\documents and settings\simmonds\desktop\spm2_batch\spm_batch.m
> On line 622 ==> SPM = spm_fmri_spm_ui(SPM);
>
> Error in ==> c:\documents and settings\simmonds\desktop\spm2_batch\tapv1_batch.m
> On line 224 ==> spm_batch(SPMBATCH); % ... and now do the work! Passing
> this structure to our Batch Engine will start the work immediately
>
>
> Daniel Simmonds
> Developmental Cognitive Neurology
> Kennedy Krieger Institute
> [log in to unmask]
>
--
-------------------------------------------------
Dr. S.F.W. Neggers
Division of Brain Research
Rudolf Magnus Institute for Neuroscience
Utrecht University Medical Center
Visiting : Heidelberglaan 100, 3584 CX Utrecht
Room A.00.1.24
Mail : Huispost A.01.126, P.O. Box
3508 GA Utrecht, the Netherlands
Tel : +31 (0)30 2503386 Fax : +31 (0)30 2505443
E-mail : [log in to unmask]
Web : http://www.fmri.nl/people/bas.html
--------------------------------------------------
|