-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hi,
I am trying to specify multiple slice timings for multiple files within one project. In the documentation of the conn_batch script, it is specified: "note: use cell array for subject-specific vectors".
Here:
Line 418 in 47e2980
| % Setup.preprocessing.sliceorder : (functional_slicetime) acquisition order (vector of indexes; 1=first slice in image; note: use cell |
When I try to specify the batch.Setup.preprocessing.sliceorder value as a cell (e.g. {[1 2 3 4], [1 3 2 4]}}) there is a line in conn_setup_preproc.m that flattens the whole timing data.
Line 303 in 47e2980
| if iscell(sliceorder), sliceorder=[sliceorder{:}]; end |
When commenting this line, the script allows to manualy specify individual slicetimings perfectly fine.
Also, the way the code seems to interpret the sliceorder cell array later on, seems like each subject's slice timing info will be stored in an array called sliceorder, while all the subjects/files will be stored in an array called sliceorder_all. So I think it doesn't make sense to flatten the cell array as it is done at the referenced section.