Hi Niels,
What about using SPM Contrast manager batch scripts? It should be easy to
save an example script as .m file and wrap a for loop around it to loop
over all your SPM.mats and call spm_jobman('run',jobs) for each of them.
Volkmar
On Mon, 12 Mar 2007, Dr Niels Focke wrote:
> Hello list.
>
> I have a large quantity of VBM designs set up and estimated from command
> line in SPM5 and I am currently struggling to find a possibility how to set
> up the contrasts automatically from command line / script too. I digged
> through various .m files but I could not figure out how to do it.
> My basic design is quite simple with 2 groups and 1 covariate (total grey
> matter) therefore my intended contrasts would be 1 -1 0 and -1 1 0
> (increase/decrease t-contrast) and 1 -1 0 (difference F-contrast). I could
> of course do it by hand in the GUI but since it are several hundred designs
> I would rather go for scripting if possible.
> Any suggestions are highly welcome!
>
> Thank You
>
> _____________________________________________________________________
> Dr. Niels Focke
> Research Fellow
> UCL-ION Epilepsy Imaging Group
> MRI Unit
> National Society for Epilepsy
> [log in to unmask]
> [log in to unmask]
>
>
>
>
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg http://fbi.uniklinik-freiburg.de/
|