Submitted by heretic133 on Sat, 06/17/2017 - 05:17
Hi everybody,
I have a problem with extracting ROI signals that is driving me crazy, I hope I can find the answer here.
My teacher gave me some '.nii' files, these '.nii' files have been preprocessed with afni, now I want to extract the ROI signals using dpabi. the size of my fMRI data is 64 x 64 x 48, So I had to reslice the AAL mask, I used the Image Reslicer tool in dpabi, after that I used Roi Signal Extactor, but I face with this error:
First I use the Image Reslicer to reslice my AAL template, for the image directory in image reslicer panel I choose 'aal.nii' from '/DPABI_V2.1_160415/Templates', and for the 'Reference' part I choose my target '.nii' file, (for this example I chose 'Filtered_4DVolume.nii' located in my 'FunImgARWSCF' folder).
As for the second part (ROI Signal Extractor), I choose the previous file 'Filtered_4DVolume.nii', and then I press "Define ROI" button, in the opened window I check 'Multiple labels in mask file' Option and press 'define other ROIs', But since the generated mask that was generated in the previous step was not a '.mat' file (it is .nii) I cant load it, So I decided to remane 'Reslice_aal.nii' to 'aal.nii' and replace it with the aal.nii file in '/DPABI_V2.1_160415/Templates', when I do this everything works fine with 'Filtered_4DVolume.nii', but when I do the above process with 'data.nii' (the result data from afni processing) I get this error:
As you can see the both size matches. But I get error.
YAN Chao-Gan
Sat, 06/17/2017 - 11:19
Permalink
What's the error?
What's the error?
Please post a snapshot here.
heretic133
Sat, 06/17/2017 - 15:13
Permalink
Details
Here is what I do in details:
First I use the Image Reslicer to reslice my AAL template, for the image directory in image reslicer panel I choose 'aal.nii' from '/DPABI_V2.1_160415/Templates', and for the 'Reference' part I choose my target '.nii' file, (for this example I chose 'Filtered_4DVolume.nii' located in my 'FunImgARWSCF' folder).
As for the second part (ROI Signal Extractor), I choose the previous file 'Filtered_4DVolume.nii', and then I press "Define ROI" button, in the opened window I check 'Multiple labels in mask file' Option and press 'define other ROIs', But since the generated mask that was generated in the previous step was not a '.mat' file (it is .nii) I cant load it, So I decided to remane 'Reslice_aal.nii' to 'aal.nii' and replace it with the aal.nii file in '/DPABI_V2.1_160415/Templates', when I do this everything works fine with 'Filtered_4DVolume.nii', but when I do the above process with 'data.nii' (the result data from afni processing) I get this error:
As you can see the both size matches. But I get error.
Here is what my 'data.nii' looks like in afni:
and here is my 'Filtered_4DVolume.nii':
YAN Chao-Gan
Wed, 06/21/2017 - 08:28
Permalink
You can set a break point at
You can set a break point at Lin 204 of y_ExtractROISignal.m and see why this is missed in your AFNI data.
heretic133
Mon, 06/26/2017 - 16:12
Permalink
Thank you very much, I found
Thank you very much, I found my problem