help > RE: batch & multiple between conditions contrasts
Jan 5, 2015  03:01 PM | h i
RE: batch & multiple between conditions contrasts
Alfonso,

Thanks again for all of your help!

Best wishes!

h.
Originally posted by Alfonso Nieto-Castanon:
Hi h.

Yes, that is exactly correct (and I will see if we can change this behavior in the next release so that this step does not overwrite any already-existing mask files and only fills-in the missing ones instead)

Best
Alfonso

Originally posted by h i:
Alfonso:

It is working now.

I did not assign a value to Batch.Setup.masks.Grey.files{nsub}. I just left that empty and only assigned values to the White and CSF file variables. Reading the manual again, it states "If any of these fields are left unset the conn toolbox will perform segmentation on the anatomical volumes (for each subject) in order to define the missing masks." By assigning values to all 3, Grey, White, and CSF files, it now correctly reads in my alternative CSF and White matter masks. If I don't assign ALL 3 fields, then it seems conn_batch assigns the c1, c2, and c3 files created from segmentation as the grey matter, white matter, and csf masks. Is this correct?


h.

Originally posted by Alfonso Nieto-Castanon:
Hi h.

The former approach (using Batch.Setup.masks.Grey.files, Batch.Setup.masks.White.files, and Batch.Setup.masks.CSF.files) should have worked just fine, could you please send me the batch file that you used and/or any error message that you got when trying to run it to see if I can figure out what might have happened?

Best
Alfonso
Originally posted by h i:
Alfonso,

Thank you for your response.

That helps a great deal.

I have another question regarding ROI masks.

I've had some trouble running the batch script and using different white matter and csf masks as ROI's.

I can successfully use different white matter and csf masks for each subject. However, it does not work when I included them in a batch script.

Initially, I tried using the Batch.Setup.masks.White.files{nsub} and Batch.Setu.maksCSF.files{nsub} for assigning the alternative white matter and csf masks. However, they were ignored, and the resulting roi's used for denoising were the segmented grey matter and white matter files for each subject (c1 and c2 files, respectively).

I then tried the BATCH.Setup.rois.names{nrois} and BATCH.Setup.rois.names{nrois}{nsub} options for the csf and white matter masks.

But I get the following error messages for my batch script:

Step 5/6: Importing ROI data
100.0% (Subject 15 Session 2)

Bad cell reference operation.

Error in conn_process (line 841)

if length(dims)>=n1&&~isempty(dims{n1}),
CONN_x.Preproc.confounds.dimensions{end+1}=[min(dims{n1}(1),CONN_x.Preproc.variables.dimensions{idx}(1)),CONN_x.Preproc.variables.dimensions{idx}(1)];
else

Error in conn_process (line 12)
case 'setup', disp(['CONN: RUNNING SETUP STEP']); conn_process([0:5]);

Error in conn_batch (line 432)
conn_process Setup;

Error in batch_new_conn (line 314)
conn_batch(BATCH)

What exactly am I doing wrong here?

Your input would greatly be appreciated.

Thanks.

h.

Threaded View

TitleAuthorDate
h i Dec 2, 2014
h i Dec 15, 2014
Alfonso Nieto-Castanon Dec 16, 2014
h i Dec 16, 2014
Alfonso Nieto-Castanon Dec 17, 2014
RE: batch & multiple between conditions contrasts
h i Jan 5, 2015
Alfonso Nieto-Castanon Dec 3, 2014
h i Dec 3, 2014
Alfonso Nieto-Castanon Dec 5, 2014
h i Dec 5, 2014
Alfonso Nieto-Castanon Dec 10, 2014