File format specification

File format specification

File format specification – 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.).
File format specification

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

SessionExperimental ConditionOnsetDurationAmplitude
0calculaudio35.4000000.000000
0clicDaudio143.4000000.000000
0clicDaudio162.0000000.000000
0clicDaudio230.0000000.000000
0clicDvideo18.0000000.000000
0clicDvideo69.0000000.000000
0clicDvideo227.7000000.000000

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

Contrasts JSON format

File format specification

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.