help > struggling to get SampleData to work on various setups
Dec 18, 2017  04:12 PM | O Robinson
struggling to get SampleData to work on various setups
I managed to run gPPI successfully a couple of years ago, but am having bad luck setting it up again.

I couldnt get it to work on my windows machine with spm12 or spm8 and matlab2017a and have just switched to linux with spm8 (which is what worked for me previously). I am using matlab R2017b.

I have the most recent gPPI version and have extracted the sampleData.

When I run runOnSampleData.m I get:

%%%

Operands to the || and && operators must be convertible to logical scalar values.

Error in dlmwrite (line 133)
useVectorized = realdata && precnIsNumeric && ~contains('%\',dlm) ...
Error in PPPI (line 861)
dlmwrite([P.subject '_' region1 '_session' num2str(z) '_' P.method '_PPI_regressors.txt'],[OUT.PPI.C
OUT.P.C OUT.Y.C OUT.C.C],' ');
Error in runOnSampleData (line 50)
PPPI(P, ['/home/brain/PPPIv13/running_gPPI_generic' filesep 'sampleData' filesep 'stats' filesep
'gPPI_sampleDataTest.mat']);
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.hasReqDataFile
Error in rmiml.visibleInToolstrip
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.hasReqDataFile
Error in rmiml.visibleInToolstrip

%%%

(n.b I kept getting the "Operands to the || and && operators must be convertible to logical scalar values." error on windows too).

If I silence the Save Output section in PPPI I get:

%%%
P =

struct with fields:
subject: 'sampleData_Study'
directory: '/home/brain/PPPIv13/running_gPPI_generic/sampleData/stats'
VOI: '/home/brain/PPPIv13/running_gPPI_generic/rmedPrecCing.nii'
Region: 'rmedPrec'
analysis: 'psy'
method: 'cond'
Estimate: 1
contrast: 0
extract: 'eig'
Tasks: {1×13 cell}
Weights: []
equalroi: 1
FLmask: 0
CompContrasts: 1
Contrasts: [1×2 struct]
Log File: sampleData_Study_PPPI_12_18_2017_6.log
PPPI Version: 13.1.4-17-2014
Parameters used:
Processing subject: sampleData_Study
VOI file : /home/brain/PPPIv13/running_gPPI_generic/rmedPrecCing.nii
Output file will be: sampleData_Study_rmedPrec_session#_cond_PPI_regressors.txt
Contrast : No adjustment
Analysis : Psychophysiological Interactions
Extraction : eigenvariate
Tasks : _0_etoh_on_onsets_run1_etoh_off_onsets_run1_etoh_urge_onsets_run1_attn_on_onsets_run1_attn_off_onsets_run1_attn_urge_onsets_run1_etoh_on_onsets_run2_etoh_off_onsets_run2_etoh_urge_onsets_run2_attn_on_onsets_run2_attn_off_onsets_run2_attn_urge_onsets_run2
Method : Condition Specific
VOI has 549 voxels in 3x3x3 space
VOI has 549 voxels in 3x3x3 space. This is in the the same space as the input data and functional mask.
VOI has 549 voxels in 3x3x3 space
VOI has 549 voxels in 3x3x3 space. This is in the the same space as the input data and functional mask.
Estimation Failed
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
PPI Contrasts were not estimated for some reason.
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.hasReqDataFile
Error in rmiml.visibleInToolstrip
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.hasReqDataFile
Error in rmiml.visibleInToolstrip

%%%

Ive run out of debugging ideas at this point! Its not an issue with MATLAB 2017 is it? Any help at all gratefully received! Thanks for providing this tool!

Threaded View

TitleAuthorDate
struggling to get SampleData to work on various setups
O Robinson Dec 18, 2017
Donald McLaren Jan 24, 2018
Ehssan Amini Dec 17, 2021
Ehssan Amini Dec 20, 2021
wyl_phding Jul 9, 2018
Sónia Ferreira Aug 1, 2019
Sónia Ferreira Aug 1, 2019
O Robinson Dec 19, 2017
Donald McLaren Dec 19, 2017
Donald McLaren Dec 19, 2017
O Robinson Dec 19, 2017
Donald McLaren Dec 19, 2017
O Robinson Dec 19, 2017
O Robinson Dec 19, 2017
Donald McLaren Dec 19, 2017
O Robinson Dec 19, 2017
Donald McLaren Dec 18, 2017
Donald McLaren Dec 18, 2017
O Robinson Dec 18, 2017
Donald McLaren Dec 18, 2017
Donald McLaren Dec 18, 2017
O Robinson Dec 18, 2017
Donald McLaren Dec 18, 2017