Fork me on GitHub

3. File format specification

3.1. Paradigm CSV format

To encode the experimental paradigm, the CSV file format comprises 5 columns:

  1. Session number (integer)
  2. Experimental Condition, as string with double quotes
  3. Onset (float in s.)
  4. Duration (float s.). 0 for event-related paradigm
  5. Amplitude (float, default is 1.).

Example extracted from pyhrf/python/datafiles/paradigm_loc.csv:

Localizer paradigm
Session Experimental Condition Onset Duration Amplitude
0 calculaudio 35.400000 0.000000
0 clicDaudio 143.400000 0.000000
0 clicDaudio 162.000000 0.000000
0 clicDaudio 230.000000 0.000000
0 clicDvideo 18.000000 0.000000
0 clicDvideo 69.000000 0.000000
0 clicDvideo 227.700000 0.000000

NB: Be careful not to end float onset and duration with a point . because it could result in python not being able to split the paradigm correctly (end with a zero if necessary)

3.2. Contrast JSON format

To encode contrasts definition, use the following json format:

{
    "contrast_name": "linear combination of conditions",
    "Audio-Video": "clicDaudio-clicDvideo"
}

The names in the contrast definition must correspond to the experimental conditions (case sensitive) defined in the above CSV file.