maartenmennes / ICA-AROMA

ICA-AROMA Software Package: a data-driven method to identify and remove head motion-related artefacts from functional MRI data.
Apache License 2.0
91 stars 53 forks source link

Error: Mask and image must be the same size #69

Closed parmisk closed 10 months ago

parmisk commented 10 months ago

Hi, I am runing the ICA AROMA on fMRIprep outputs and am getting the following errors: (I am using MNI152NLin2009cAsym space). Would appreciate your help.

------------------------------- RUNNING ICA-AROMA ------------------------------- --------------- 'ICA-based Automatic Removal Of Motion Artifacts' ---------------

Step 1) MELODIC Step 2) Automatic classification of the components

maartenmennes commented 10 months ago

Hello, I'm not fully up to date with the fmriprep implementation, but the error message suggests that the MN152NLin2009cAsym space has a different matrix dimension compared to the typical MNI152 space 2mm we use in AROMA (91x109x91).

parmisk commented 10 months ago

Thank you for getting back to me so quickly. I checked and the MN152NLin2009cAsym matches the dimensions you stated res = 2 mm (91x109x91). Is there any other reason that this error would occur since our template has the same matrix dimension? Also, I used the ICA-AROMA script you have on your page since fMRIprep no longer supports AROMA within their workflow.

parmisk commented 10 months ago

Please ignore my last email, I ended up re-runing the fMRIprep with the MNI152NLin6Asym to match what AROMA requires and it worked. Thank you.