help
help > unable to run runOnSampleData: 'Unrecognized field name "mat".'
Aug 4, 2022 03:08 PM | Katie Surrence
unable to run runOnSampleData: 'Unrecognized field name "mat".'
Hi all,
I'm trying to get started with the gPPI toolbox, and I'm struggling to run the script runOnSampleData. Confusingly, the problem seems internal to SPM.
Here's the whole stack trace:
>> runOnSampleData
Error using spm_changepath
Cannot load
"/Users/katie/neuroimaging/NITRC-multi-file-downloads/running_gPPI_generic/sampleData/stats/SPM.mat".
I noticed that there was a file in the stats directory called spm_defaults.m that lacked this line that is in the file of that name in the SPM master repo:
defaults.mat.format = '-v6'; % options: '-mat', '-v6', '-v7.0', '-v7.3'
So I tried adding that line to the file, same error. I also tried deleting that file, same error. When I pause in the debugger the `defaults` struct has a bunch of other fields (`stats`, `mask`, `realign`, etc.) but no `mat`. I can find another way to rename paths in an SPM.mat file and try to move on from here, but I thought I would report it.
Thanks for your attention,
Katie
I'm trying to get started with the gPPI toolbox, and I'm struggling to run the script runOnSampleData. Confusingly, the problem seems internal to SPM.
Here's the whole stack trace:
>> runOnSampleData
Error using spm_changepath
Cannot load
"/Users/katie/neuroimaging/NITRC-multi-file-downloads/running_gPPI_generic/sampleData/stats/SPM.mat".
Error in runOnSampleData (line 4)
spm_changepath(['/Users/katie/neuroimaging/NITRC-multi-file-downloads/running_gPPI_generic' filesep 'sampleData' filesep 'stats' filesep 'SPM.mat'], '/export/research/analysis/human/khutchison/etohtaste_07226/AUTO_ANALYSIS/triotim/M87103240/Study20080417at142008/analysis/TASTE_IND_TIM/stats', ['/Users/katie/neuroimaging/NITRC-multi-file-downloads/running_gPPI_generic' filesep 'sampleData' filesep 'stats'] );
spm_changepath(['/Users/katie/neuroimaging/NITRC-multi-file-downloads/running_gPPI_generic' filesep 'sampleData' filesep 'stats' filesep 'SPM.mat'], '/export/research/analysis/human/khutchison/etohtaste_07226/AUTO_ANALYSIS/triotim/M87103240/Study20080417at142008/analysis/TASTE_IND_TIM/stats', ['/Users/katie/neuroimaging/NITRC-multi-file-downloads/running_gPPI_generic' filesep 'sampleData' filesep 'stats'] );
I noticed that there was a file in the stats directory called spm_defaults.m that lacked this line that is in the file of that name in the SPM master repo:
defaults.mat.format = '-v6'; % options: '-mat', '-v6', '-v7.0', '-v7.3'
So I tried adding that line to the file, same error. I also tried deleting that file, same error. When I pause in the debugger the `defaults` struct has a bunch of other fields (`stats`, `mask`, `realign`, etc.) but no `mat`. I can find another way to rename paths in an SPM.mat file and try to move on from here, but I thought I would report it.
Thanks for your attention,
Katie
Threaded View
Title | Author | Date |
---|---|---|
Katie Surrence | Aug 4, 2022 | |
Katie Surrence | Aug 4, 2022 | |