Dear James,
the problem is with the use of 4D files. "Named file selector" does not
know about the 4D structure of your data, and therefore it will only
return 2 file names. In contrast, most SPM routines expect one filename
per volume (either as 3Dfile1.nii,1 3Dfile2.nii,1 ... or as 4Dfile.nii,1
4Dfile.nii,2 ...). SPM has a utility function called "Expand image
frames" which takes 4D image(s) and returns a list of per-volume filenames.
The solution to your problem would be to start your batch with one
instance of "Expand image frames" per 4D-file/session. Then, use
dependencies to fill the input of your "Named file selector" - you still
need it because you want to split your filename lists after smoothing.
Hope this helps,
Volkmar
<https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=SPM;afe9afd.1007>
|