help > conn_batch how to do all 1st-level analyses
Apr 22, 2016  01:04 PM | Stephen L. - Coma Science Group, GIGA-Consciousness, Hospital & University of Liege
conn_batch how to do all 1st-level analyses
Hello,

I would like to do all types of 1st-level analyses (Seed-to-Voxel, Roi-to-Roi, Voxel-to-Voxel, Dynamic FC) at once using conn_batch, but only one type is done at once, I have to launch the other analyses by hand from the GUI.

Here is my script, the part relevant to the issue should be highlighted in this link:
github dot com/lrq3000/neuro_experiments_tools/blob/60841a4c38503997c295e4881458056331e6455a/matlab/conn_subjects_loader/conn_subjects_loader.m#L281-L295

When I launch this script, it only does Voxel-to-Voxel analysis, nothing else. Here is the full output I get:
>> conn_subjects_loader
Note: data is expected to be already preprocessed
(realignment/slicetiming/coregistration/segmentation/normalization/smoothing)
Note2: this script expects a very specific directry tree layout
for your images (see script header comment). If not met,
this may produce errors like "Index exceeds matrix dimensions."
when executing conn_batch(CONN_x).
Note3: if in inter-subjects mode you get the error
"Reference to non-existent field t. Error in spm_hrf", you have to
edit spm_hrf.m to replace stats.fmri.t by stats.fmri.fmri_t .
== Conn subjects loader ==
-- Loading subjects files --
Loading conditions (subjects groups)...
Detect images for all subjects...
Detect images for subject 1/4...
Detect images for subject 2/4...
Detect images for subject 3/4...
Detect images for subject 4/4...
ROIs maps detection...
-- Generating CONN project struct --
Struct initialization...
Loading images...
Loading groups...
-- Save into CONN and run batch --
Save and run project via conn_batch (may take a while for the whole analysis to finish)...
CONN: RUNNING SETUP STEP
Checking if data files have been edited or moved. Please wait...

Step 2/7: Segmentation
100.0% (Subject 4)

Step 3/7: Importing conditions/covariates
100.0% (Subject 4 Session 1)

Step 4/7: Importing functional data
100.0% (Subject 4 Session 1)

Step 5/7: Importing ROI data
100.0% (Subject 4 Session 1)

Step 6/7: Checking ROI data consistency across subjects
100.0% (Subject 4)

Step 7/7: Updating Denosing variables

CONN: RUNNING DENOISING STEP

Step 1/7: Expanding conditions
100.0% (Condition rest)

Step 2/7: Importing conditions/covariates
100.0% (Subject 4 Session 1)

Step 3/7: Updating Denosing variables

Step 4/7: Denoising functional data
100.0% (Subject 4)

Step 5/7: Denoising ROI data
100.0% (Subject 4)

Step 6/7: preprocessing voxel-to-voxel covariance
100.0% (Subject 4 Condition 1)

Step 7/7: Updating Analysis variables

CONN: RUNNING ANALYSIS STEP

Step 1/5: Updating Analysis variables

Step 2/5: ROI-to-voxel first-level analyses

Step 3/5: ROI-to-ROI first-level analyses

Step 4/5: Voxel-to-voxel first-level analyses
100.0% (Subject 4 Condition 1)

computing subject x subject covariance
100.0% (Slice 91)

computing MVPA components
100.0% (Slice 91 Subject 4)

computing group-level dimensionality reduction. Please wait...
100.0%

computing group-PCA components
100.0% (Condition 1 Subject 4)

computing ICA decomposition. Please wait...
100.0%
computing subject-level components
100.0% (Condition 1 Subject 4)

computing group-level dimensionality reduction. Please wait...
100.0%

computing group-PCA components
100.0% (Condition 1 Subject 4)

computing subject-level components
100.0% (Condition 1 Subject 4)

Step 5/5: Preparing second-level ROI analyses

Load project into CONN GUI...
Done!

Any help would be greatly appreciated!

Threaded View

TitleAuthorDate
conn_batch how to do all 1st-level analyses
Stephen L. Apr 22, 2016
Stephen L. Apr 22, 2016
Alfonso Nieto-Castanon Apr 25, 2016
Stephen L. Apr 26, 2016
Stephen L. Apr 22, 2016
Stephen L. Apr 22, 2016