Diff for "SpmAnaCd" - MRC CBU Imaging Wiki
location: Diff for "SpmAnaCd"
Differences between revisions 1 and 2
Revision 1 as of 2006-07-24 22:23:16
Size: 1266
Editor: Scripting Subsystem
Comment:
Revision 2 as of 2013-03-07 21:23:46
Size: 1268
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
You may often run into the problem that you ran an SPM analysis on a series of image files, and you want to repeat the analysis, but the images have now moved. The [http://imaging.mrc-cbu.cam.ac.uk/scripts/spmana_cd.m spmana_cd] script is an attempt to fix this problem. It takes an SPM analysis, specified in an SPMcfg.mat, or SPM.mat, and changes the names of the image names in the analysis.Let's say your image files are now in; You may often run into the problem that you ran an SPM analysis on a series of image files, and you want to repeat the analysis, but the images have now moved. The [[http://imaging.mrc-cbu.cam.ac.uk/scripts/spmana_cd.m|spmana_cd]] script is an attempt to fix this problem. It takes an SPM analysis, specified in an SPMcfg.mat, or SPM.mat, and changes the names of the image names in the analysis.Let's say your image files are now in;

Changing the location of Image files in an SPM analysis

You may often run into the problem that you ran an SPM analysis on a series of image files, and you want to repeat the analysis, but the images have now moved. The spmana_cd script is an attempt to fix this problem. It takes an SPM analysis, specified in an SPMcfg.mat, or SPM.mat, and changes the names of the image names in the analysis.Let's say your image files are now in;

/constant/network/chaos/subj1/file1.img
/constant/network/chaos/subj1/file2.img
...
/constant/network/chaos/subj2/file1.img
/constant/network/chaos/subj2/file2.img
...

But when you ran the original analysis, they were located thus:

/period/of/relative/stability/subj1/file1.img

etc.You can create a new SPM.mat file, with the path names fixed, by running

spmana_cd

from the matlab prompt.1) Choose the root directory where the files now reside, here

/constant/network/chaos

2) Choose a directory for a new (fixed) SPM.mat to go;

3) Choose the SPM.mat file containing the original analysis

Hey presto, there is a new SPM.mat file saved in the directory specified in step 2, with the path names fixed...

CbuImaging: SpmAnaCd (last edited 2013-03-07 21:23:46 by localhost)