help > gPPI 'Input structure is not correct'
Showing 1-2 of 2 posts
Nov 12, 2016 04:11 AM | Leehyun Yoon - KU
gPPI 'Input structure is not correct'
Dear gPPI expert.
I have several questions regarding gPPI.
1) Contrary to SPM PPI, It seems that there is no part of loading 'scans' or image files. Then, How can they do estimation?
for example, when doing sPPI, there is part needed like below. (this is my own code)
% loading 's' image files
fDir = strcat( baseDir,'/', subjectDir{j}, '/preprocessing');
imgDir = strcat(fDir, '/s');
fFile = strcat(imgDir,'/', 'sw*.img' );
fileList = dir(fFile); % s.. file list
But there is no part in gPPI wrapper so I am curious that how the script can make the map only using SPM.mat file
2) Here is my gPPI code. I modified it from Bob Spunt' wrapper.
The objective of this gPPI code is, find the brain region that interact with seed region which is Frontopolar Cortex([-24_50_0]) when parameter named cnpFB fluctuates. (this was parameter modulator)
So, there is just one Contrast 'FB.cnpFB' without comparing condition.
Below is my code. And I received error message 'Input structure is not correct'. Would you give me advice regarding my code? I will attach code. Thank you so much, Sincerely.
I have several questions regarding gPPI.
1) Contrary to SPM PPI, It seems that there is no part of loading 'scans' or image files. Then, How can they do estimation?
for example, when doing sPPI, there is part needed like below. (this is my own code)
% loading 's' image files
fDir = strcat( baseDir,'/', subjectDir{j}, '/preprocessing');
imgDir = strcat(fDir, '/s');
fFile = strcat(imgDir,'/', 'sw*.img' );
fileList = dir(fFile); % s.. file list
But there is no part in gPPI wrapper so I am curious that how the script can make the map only using SPM.mat file
2) Here is my gPPI code. I modified it from Bob Spunt' wrapper.
The objective of this gPPI code is, find the brain region that interact with seed region which is Frontopolar Cortex([-24_50_0]) when parameter named cnpFB fluctuates. (this was parameter modulator)
So, there is just one Contrast 'FB.cnpFB' without comparing condition.
Below is my code. And I received error message 'Input structure is not correct'. Would you give me advice regarding my code? I will attach code. Thank you so much, Sincerely.
Nov 14, 2016 03:11 PM | Donald McLaren
RE: gPPI 'Input structure is not correct'
To address the first question, the gPPI toolbox loads the files
based on the first level SPM.mat file. In that file, the fMRI files
are stored in the SPM.xY field.
In order to figure out why you got that error message, can you attached the screen output from MATLAB. There should more outputs that can help narrow down the issue.
To do this more specifically, if you take the parameters P, you could run [Pout, errorval]=PPPI_checkstruct(P).
Let me know these two results and I can help troubleshoot the issue.
In order to figure out why you got that error message, can you attached the screen output from MATLAB. There should more outputs that can help narrow down the issue.
To do this more specifically, if you take the parameters P, you could run [Pout, errorval]=PPPI_checkstruct(P).
Let me know these two results and I can help troubleshoot the issue.
