help > gPPI error
Showing 1-5 of 5 posts
Display:
Results per page:
Oct 26, 2015  04:10 PM | S Sheldon
gPPI error
Hello,
I am having trouble getting this script to run. I have run gPPI successfully in the past, but cannot figure out why I am getting this error:
One or more inputs are not correct.
ERROR 1:P.Contrasts(1).left is not formatted correctly.
ERROR 2:P.Contrasts(1).right is not formatted correctly.
ERROR 3:P.Contrasts(2).left is not formatted correctly.
ERROR 4:P.Contrasts(2).right is not formatted correctly.
ERROR 5:P.Contrasts(3).left is not formatted correctly.
ERROR 6:P.Contrasts(3).right is not formatted correctly.
ERROR 7:P.Contrasts(4).left is not formatted correctly.
ERROR 8:P.Contrasts(4).right is not formatted correctly.
ERROR 9:P.Contrasts(5).left is not formatted correctly.
ERROR 10:P.Contrasts(5).right is not formatted correctly.
ERROR 11:P.Contrasts(6).left is not formatted correctly.
ERROR 12:P.Contrasts(6).right is not formatted correctly.

Any help would be very much appreciated!
Signy
Attachment: ppi_wrapper.m
Oct 26, 2015  04:10 PM | S Sheldon
RE: gPPI error
and here is the template I am using

Thanks,
Signy
Oct 26, 2015  05:10 PM | Donald McLaren
RE: gPPI error
Signy,

The left and right fields need to be entered as cell arrays. For example,
P.Contrasts(1).left={'Auto'}.

This should resolve the error messages.

Best,
Donald
Oct 26, 2015  06:10 PM | S Sheldon
RE: gPPI error
Dear Donald,
Thank you! That resolved that issue, however I am still getting this error:
Parameters used:
Processing subject: 101
VOI file : /Volumes/UNTITLED/Fluency_2015/gPPI/Fluency_hippocampal_ROIs/group_average_Left_head.nii
Output file will be: 101_Average_Left_head_session#_cond_PPI_regressors.txt
Contrast : Omnibus F-test for PPI Analyses
Analysis : Psychophysiological Interactions
Extraction : mean
Tasks : _1_Auto_Spa_Sem_Base_Pho
Method : Condition Specific
Failed: 101
Oct 26, 2015  07:10 PM | Donald McLaren
RE: gPPI error
Signy,

This is one of the unfortunate drawbacks of using the try/catch statement in matlab. To find out out the issue, 
please comment out the try, catch, and associated end statement lines in the ppi_wrapper.m code. Then re-run the code.

As PPPI() isn't being run inside a try statement, matlab will print out the error from the PPPI command.

Please let me know what the error from the PPPI command is after re-running.

Best,
Donald