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.
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: https://github.com/alfnie/conn/blob/47e2980999c3b8da14c5c5ea37a90446f2aeb986/conn_batch.m#L418When 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 inconn_setup_preproc.m
that flattens the whole timing data. https://github.com/alfnie/conn/blob/47e2980999c3b8da14c5c5ea37a90446f2aeb986/conn_setup_preproc.m#L303When 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 calledsliceorder_all
. So I think it doesn't make sense to flatten the cell array as it is done at the referenced section.