Skip to content

Multiple slice timings for multiple files/subjects #9

@juangpc

Description

@juangpc

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:

% 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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions