DPARSFA error when stopping and restarting pipeline

Submitted by druzgal on
DPARSFA has no problem processing a NIFTI dataset through the steps of Slice Timing and Realign. However, I get a reproducible error if I try to separate the steps in the pipeline. For example:

1) Processing the NIFTI dataset through Slice Timing alone works fine.
2) But if I try to restart DPARSFA at Realign, using FunNiiGZA as my starting point, I get the following error:

--------------------------------------------------------------------------
Error using parallel_function (line 589)

Can NOT retrieve the TR information from the NIfTI images

Error stack:
DPARSFA_run>(parfor body) at 277

Error in DPARSFA_run (line 264)
            parfor i=1:AutoDataProcessParameter.SubjectNum

Error in DPARSFA>pushbuttonRun_Callback (line 1469)
    [Error]=DPARSFA_run(handles.Cfg);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in DPARSFA (line 33)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback

---------------------------------------------------------------------------

And I get the exact same error if I try to restart the pipeline at Voxel-Specific Head Motion, using FunNiiGZAR as my starting point. Just wondering if anyone has thoughts on how to fix this? I'm running DPARSFA V2.2PRE_120905 on Matlab R2012a and OSX 10.8.2.

Thanks,

Jason Druzgal

YAN Chao-Gan

Mon, 11/05/2012 - 19:25

Hi Jason,

Please set the TR information instead of setting at "0".

For some reason, the data after preprocessing by SPM (e.g., slice timing, realign) will lost the TR information in the NIfTI header.

Thus, if you started with the raw data, DPARSF will  retrieve the TR information form the raw NIfTI data and save them in memory, and use them later. But in the case you want to start the process after SPM's preprocessing, please set the TR information instead to retrieve from the NIfTI header.

Best,

Chao-Gan
Forums