help > Help with Batch scripting using 3d nii files
Jul 24, 2012  01:07 AM | Mac Shine
Help with Batch scripting using 3d nii files
Hi,

I'm sure this is an incredibly basic question, so hopefully it has an equally easy answer:

I'm trying to write a batch script that will find my 3d nii files (I have 140 time points for about 175 patients) and then run the pre-processing steps on them. In the example Batch script, the program calls a 4d nii file using the following code:

>> BATCH.New.functionals{1}{1}='mypath/subject1/session1/foo4d.nii'

The problem is, my data is organised as 3d nii files. How do I amend the line so that Conn will grab all 140 scans for each patient?

As a side point, I'd also like to write a 'for' loop which will go through and grab each subject/session in turn? Is it possible, or do I need to just copy the lines and go through, changing each one to point to the specific subject/session???

Thanks for your time

Mac

Threaded View

TitleAuthorDate
Help with Batch scripting using 3d nii files
Mac Shine Jul 24, 2012
Alfonso Nieto-Castanon Jul 25, 2012
Mac Shine Jul 25, 2012
Alfonso Nieto-Castanon Jul 25, 2012
Mac Shine Jul 26, 2012
Alfonso Nieto-Castanon Jul 27, 2012