Using an Input File
It is possible to specify Subjects, Sessions and Events based on a text file. Required options in aap.acq_details.input (see also aap_parameters_defaults_CBSU.xml):
- list: text file:
- Required format:
- CSV-file: cells are separated with semicolon
- subcells are separated with “_”
- a header in the first line
- Required columns (may contain more):
- “ID”: numbers for identifying subjects
- “FMRI1”: cells for the fMRI measurement; it must contain the same number of subcells as the coresponding column header
- first subcell is the CBU volunteer number (without “CBU”)
- series numbers are defined in the consecutive subcells with the same order as their names in the coresponding column header
- E.g.:
ID Age Sex FMRI1_Loc_Con_LDeasy_LDhard 02 29 f 90952_7_6_4_5 As “pure” text:
ID;Age;Sex;FMRI1_Loc_Con_LDeasy_LDhard
02;29;f;90952_7_6_4_5
- Required format:
- selected_sessions: subselection of a subset of series:
E.g. (based on the example above): [3 4] –> LDeasy and LDhard - referencedirectory_tmpl: a template for path to the folder containing Event files (.mat files in SPM-format)
- Required format:
- must contain “*” which will be substituted with ID (see above)
E.g.: ‘/imaging/ta02/ActionWords/Analysis/E-Prime/DAW*/ref’
- must contain “*” which will be substituted with ID (see above)
- The folder should contain the regressor(s) in SPM format (.mat file) with filename format:
condition_vol_ ID–Session Name.mat.
E.g. (based on the example above): condition_vol_2-LDeasy.mat
- Required format:
- Then you add these lines to your UMS (based on the example above):
aap.acq_details.input.list='/imaging/ta02/ActionWords/Analysis/Subject_List_Test.csv';
aap.acq_details.input.selected_sessions = [3 4];
aap.acq_details.input.referencedirectory_tmpl = '/imaging/ta02/ActionWords/Analysis/E-Prime/DAW*/ref';
aap = aas_processinput(aap);