open-discussion > Error with Realign and Unwarp SPM12
Showing 1-2 of 2 posts
Display:
Results per page:
Oct 10, 2018  08:10 AM | cece2602
Error with Realign and Unwarp SPM12
Hi all,

I am trying to run a realign and unwarp using SPM12 but keep getting the following error:

------------------------------------------------------------------------
Running job #1
------------------------------------------------------------------------
Running 'Realign & Unwarp'

SPM12: spm_realign (v7141) 18:06:29 - 09/10/2018
========================================================================
Printing 'Graphics' figure to:
/Volumes/LaCie/spm_2018Oct09.ps
Completed : 18:08:13 - 09/10/2018
SPM12: spm_uw_estimate (v6824) 18:08:13 - 09/10/2018
========================================================================
Printing 'Graphics' figure to:
/Volumes/LaCie/spm_2018Oct09.ps
Completed : 18:10:01 - 09/10/2018
SPM12: spm_uw_estimate (v6824) 18:10:02 - 09/10/2018
========================================================================
Printing 'Graphics' figure to:
/Volumes/LaCie/spm_2018Oct09.ps
Completed : 18:11:49 - 09/10/2018
SPM12: spm_uw_estimate (v6824) 18:11:50 - 09/10/2018
========================================================================
Printing 'Graphics' figure to:
/Volumes/LaCie/spm_2018Oct09.ps
Completed : 18:13:38 - 09/10/2018
SPM12: spm_uw_apply (v6301) 18:13:38 - 09/10/2018
========================================================================
Computing mask... : Failed 'Realign & Unwarp'
Matrix dimensions must agree.
In file "/Users/jin/Documents/MATLAB/spm12/spm_get_image_def.m" (v5219), function "spm_get_image_def" at line 111.
In file "/Users/jin/Documents/MATLAB/spm12/spm_uw_apply.m" (v6301), function "spm_uw_apply" at line 229.
In file "/Users/jin/Documents/MATLAB/spm12/config/spm_run_realignunwarp.m" (v6554), function "spm_run_realignunwarp" at line 98.
The following modules did not run:
Failed: Realign & Unwarp

I get these errors for 2 subjects.

I have tried breaking it down by processing the data from each task separately (as opposed to a batch script with multiple sessions) and it works fine this way. But it means I get several mean images, instead of just the one as you would get if I processed all the tasks together. Is this ok?

Does anyone know what the problem could be? 

Many thanks for all your help.

Cece
Oct 12, 2018  02:10 AM | Abdullah BAS - Erc─▒yes
RE: Error with Realign and Unwarp SPM12
-Hi 

    Have you ever looked slices of those 2 subject's. Do you use SPM12 from command line or do you use a script? If you have those 2 errors it means your matrices which you wanna process is not same as other ones. So I think you should investigate something like that. 


Thanks Abdullah