help > second level analysis
Showing 1-7 of 7 posts
Display:
Results per page:
Nov 3, 2015  08:11 PM | S Sheldon
second level analysis
Hello,
I can successfully run a gppi analysis at the first level, and view my results in spm, however I am not able to perform a second level analysis: When I attempt to do so in SPM, the contrasts are not valid. Any ideas why this may be?
Best,
Signy
Nov 3, 2015  09:11 PM | Donald McLaren
RE: second level analysis
It's impossible to say without knowing what model you created, what your input images to the model are, and what contrast you tried to generate. Also, did the model estimate? Did you get any error messages? If you provide these details, I should be able to provide a better answer.
Nov 4, 2015  03:11 AM | S Sheldon
RE: second level analysis
I did not get any errors running at the first level (see attached the wrapper I used and the associated template.
When I go to run a second level analysis, the contrast images are not recognized. I can see them in the folder as .img files but there are no associated HDR files that I can locate.
Best,
Signy Sheldon,
Attachment: ppi_wrapper.m
Nov 4, 2015  01:11 PM | S Sheldon
RE: second level analysis
My apologies, I do i get an error at the first level (See below).
Many thanks for your help!



Chunk 112/112 : ...done
Spatial non-sphericity (over scans) : ...done
Saving SPM.mat : ...done
Completed : 09:19:31 - 30/10/2015
Valid Contrast
Valid Contrast
Valid Contrast
Valid Contrast
Valid Contrast
Valid Contrast
contrast image 1 : ...written con_0001.nii
spm{T} image 1 : ...written spmT_0001.nii
contrast image 2 : ...written con_0002.nii
spm{T} image 2 : ...written spmT_0002.nii
contrast image 3 : ...written con_0003.nii
spm{T} image 3 : ...written spmT_0003.nii
contrast image 4 : ...written con_0004.nii
spm{T} image 4 : ...written spmT_0004.nii
contrast image 5 : ...written con_0005.nii
spm{T} image 5 : ...written spmT_0005.nii
contrast image 6 : ...written con_0006.nii
spm{T} image 6 : ...written spmT_0006.nii
Moving Contrast Images
error moving contrast PPI_Auto_Base
error moving contrast PPI_Auto_Base
Moving Contrast Images
error moving contrast PPI_Spa_Base
error moving contrast PPI_Spa_Base
Moving Contrast Images
error moving contrast PPI_Sem_Base
error moving contrast PPI_Sem_Base
Moving Contrast Images
error moving contrast PPI_Pho_Base
error moving contrast PPI_Pho_Base
Moving Contrast Images
error moving contrast PPI_Auto_minus_Spa
error moving contrast PPI_Auto_minus_Spa
Moving Contrast Images
error moving contrast PPI_Spa_minus_Auto
error moving contrast PPI_Spa_minus_Auto
Nov 4, 2015  01:11 PM | Donald McLaren
RE: second level analysis
Have you downloaded the latest version of the PPPI toolbox from NITRC? If not, could you try the most recent version. If you have the most recent version, please let me know and I'll upload a patch to the problem. 

I suspect its an issue with naming the file '.img' instead of '.nii'.

Best,
Donald
Nov 4, 2015  01:11 PM | S Sheldon
RE: second level analysis
Hi Donald,
Yes this with the most recent version (PPPIv13.1).
Thanks again,
Signy
Nov 5, 2015  03:11 AM | Donald McLaren
RE: second level analysis
Please replace spm_contrasts_ppi.m with the attached file.

This will solve the issue that you are having with the filenames.
Attachment: spm_contrasts_PPI.m