alfnie / conn

CONN toolbox, development version (conn-toolbox.org)
http://web.conn-toolbox.org
38 stars 16 forks source link

Multiple slice timings for multiple files/subjects #9

Open juangpc opened 11 months ago

juangpc commented 11 months ago

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#L418

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. https://github.com/alfnie/conn/blob/47e2980999c3b8da14c5c5ea37a90446f2aeb986/conn_setup_preproc.m#L303

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.