File format specification¶
Paradigm CSV format¶
To encode the experimental paradigm, the CSV file format comprises 5 columns:
- Session number (integer)
- Experimental Condition, as string with double quotes
- Onset (float in s.)
- Duration (float s.). 0 for event-related paradigm
- Amplitude (float, default is 1.).
Example (extracted from pyhrf/python/datafiles/paradigm_loc.csv):
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 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¶
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.