Hi Anton, Jonathan & list,
it mostly depends which version of SPM you use. Starting with SPM5, you
can create batch scripts (which are essentially MATLAB data structures
capturing all necessary inputs). These batches can contain multiple
processing steps which will be run sequentially. In SPM5, you will have
to modify each input (filenames etc.) if it changes between subjects.
SPM8 extends this concept by describing dependencies between outputs of
one processing step and inputs to another step in a subject-independent
way. Once you have created the job, entering the missing data and
running it is as simple as
spm_jobman('serial',{myjob1,...},'',input1, input2, ...)
See the batch chapter in the SPM8 manual for more details.
Volkmar
Am Sonntag, den 30.11.2008, 10:31 +0000 schrieb Jonathan Peelle:
> Hi Anton
>
> There are a lot of SPM batch scripts floating about. With a little
> bit of Matlab knowledge it can certainly be a big help. I suggest you
> start by looking at:
>
> http://imaging.mrc-cbu.cam.ac.uk/imaging/SpmBatch5
>
> and those listed here:
>
> http://www.fil.ion.ucl.ac.uk/spm/ext/#batch_utils
>
> Good luck!
>
> Jonathan
>
>
> On Sun, Nov 30, 2008 at 12:09 AM, Anton Orlichenko <[log in to unmask]> wrote:
> > Dear list,
> >
> > A lot of the time I spend using SPM is spent doing repetitive tasks,
> > such as changing the input files to normalization while all the other
> > normalization parameters stay the same. So the subjects change from
> > hc1.nii, hc2.nii, hc3.nii and each time I have to enter in the new
> > information using the GUI.
> >
> > Is there a way to automate this process?
> >
> > For instance, it would be really nice to have a function normalize()
> > that takes the name of a subject and some parameters, that can be put
> > in a script which is called just once.
> >
> > Anton
> >
>
--
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/
|