Dear Dr. McLaren and gPPI forum users,
I‘m using the toolbox to calculate gPPI and I have 26 VOIs. However, I encountered a problem that not all my VOIs generated final results. And all the processes of these failed VOIs showed:
VOI has 114 voxels in 2x2x2 space
Voxels do not exist; image and VOI do not overlap
entirely; VOI must be within the image.
OR No voxels in VOI. Program will
exit
And I also found that different subjects have different failed VOIs. I'd like to know the reason of the error and the recommended way to solve it. Because after the preprocessing, I believe all my subjects's BOLD nii file should be in standard space.
I also have another question that can the toolbox calculate the gPPI on brain parcels level rather than VOIs to whole brain?
I would be grateful for any help you could offer, thank you!
Xiaoying Sun
cd([indOutPath f
'GLM']);
create_sphere_image([allSbjPath '\'
allSbjDir(sbj).name '\3D_001.nii'],ROI_LIST(i,:),{['VOI_'
num2str(i)]},6); %here I used a 3D nii of each subjects to create
the VOI
P.subject=allSbjDir(sbj).name;
P.directory=[indOutPath f
'GLM'];
P.VOI=[indOutPath f 'GLM' f 'VOI_'
num2str(i) '_mask.nii'];
P.Estimate=1;
P.contrast=0;
P.extract='eig';
P.Tasks={'1' '5Hz'
'10Hz' '20Hz'};
P.Weights=[];
P.analysis='psy';
P.method='cond';
P.CompContrasts=1;
P.Weighted=0;
P.Contrasts(1).left={'20Hz'};
P.Contrasts(1).
right={'5Hz'};
P.Contrasts(1).STAT='T';
P.Contrasts(1).Weighted=0;
P.Contrasts(1).name='20Hz_minus_5Hz';
P.Contrasts(2).left={'20Hz'};
P.Contrasts(2).right={'10Hz'};
P.Contrasts(2).STAT='T';
P.Contrasts(2).Weighted=0;
P.Contrasts(2).name='20Hz_minus_10Hz';
P.Contrasts(3).left={'10Hz'};
P.Contrasts(3).right={'5Hz'};
P.Contrasts(3).STAT='T';
P.Contrasts(3).Weighted=0;
P.Contrasts(3).name='10Hz_minus_5Hz';
P.equalroi=0;
P.FLmask=1;
PPPI(P);