rest_Nii2NiftiPairs from command line

Hi,

Running rest_Nii2Niftipairs from the GUI is time consuming as it seems to require selecting each subject one by one. That is, there isn't a batch option. I've tried to run from the command line, but I can't seem to get this function to iterate across all the images. It seems that I can only input as the PI one image. Is there is something I am missing? I have 100 scans that I wish to convert from .nii to .hdr/.img for connectivity analyses, and would very much appreciate input as to how to best accomplish this using nii2niftipairs.

Best,

Eric

Hi!
Sorry for the delay!
If you want to use it in a batch mode, just right click on the list box, and click "Add recursively all sub-folders of a directory", then you can add the files for all of the subjects. This "Add recursively" function is valid for all most GUIs in REST (as described in the vedio).
Also, if you want to use it in command line, you need to know how to use MATLAB's "for ... end" loop.
Best wishes!