help > RE: Error importing SPM.mat file
Dec 23, 2014  04:12 AM | Xiaozhen You
RE: Error importing SPM.mat file
Hi Alfonso,
Sorry to bother you again :)
I finally got the con_importspm to work to import 2 sessions per subject, and also setting different session condition with different name using the script you sent to me, but now it gave me the following error (I updated the conn to p version now)
Warning: Contents.m overloaded by version in folder /data/apps/spm/8/toolbox/TOM8
SOME ERROR FOUNDS!: Please revise the Setup information
ERROR: Subject 1 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 1 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 2 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 3 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 4 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition nonsal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition noresp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition resp_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
ERROR: Subject 5 does not have any scan associated with condition sal_Session1_Session1_Session1_Session1_Session1_Session1_Session1_Session1
...
...
CONN: RUNNING PREPROCESSING STEP

Step 2/7: Importing conditions/covariates
100.0%  (Subject 88 Session 2)
Not ready to process step conn_process_5
CONN: RUNNING ANALYSIS STEP
Error using conn_process (line 1431)
Some conditions have not been processed yet. Re-run
previous step
Error in conn_process (line 19)
case 'analyses',        disp(['CONN: RUNNING
ANALYSIS STEP']);
conn_process([9,10:13,15],varargin{:});
Error in conn_batch (line 617)
conn_process('Analyses',batch.Analysis.analysis_number);
Error in BatchScript_withexcel_Connallfields_spm (line
228)
conn_batch(batch);

I"m attaching the conn_mat file, and also the script I wrote to run the batch. Not sure what I did wrong.
Thanks again for debugging it for me!
Xiaozhen

Threaded View

TitleAuthorDate
Xiaozhen You Nov 25, 2014
Xiaozhen You Nov 26, 2014
Alfonso Nieto-Castanon Nov 27, 2014
Xiaozhen You Dec 9, 2014
Alfonso Nieto-Castanon Dec 10, 2014
Alfonso Nieto-Castanon Dec 10, 2014
Xiaozhen You Dec 10, 2014
Alfonso Nieto-Castanon Dec 12, 2014
RE: Error importing SPM.mat file
Xiaozhen You Dec 23, 2014
Xiaozhen You Dec 23, 2014
Alfonso Nieto-Castanon Dec 24, 2014
Xiaozhen You Dec 31, 2014
Alfonso Nieto-Castanon Dec 31, 2014
Xiaozhen You Jan 1, 2015
Alfonso Nieto-Castanon Jan 1, 2015
Xiaozhen You Jan 2, 2015
Alfonso Nieto-Castanon Jan 3, 2015
Xiaozhen You Jan 5, 2015
Xiaozhen You Jan 6, 2015
Alfonso Nieto-Castanon Jan 15, 2015
Xiaozhen You Jan 15, 2015
Xiaozhen You Dec 17, 2014
Xiaozhen You Nov 27, 2014
Alfonso Nieto-Castanon Nov 26, 2014