help > RE: Import condition text file format
Feb 7, 2017  02:02 PM | Alfonso Nieto-Castanon - Boston University
RE: Import condition text file format
Hi Xiaozhen,

The format is described in the contextual help when hovering over the conditions.tools menu or in the conn_importconditions.m file. It is the following:

file format: .csv file (comma-separated fields) with one header line, and five columns: condition_name, subject_number, session_number, onsets, durations

Example file contents (myfile.csv):

condition_name, subject_number, session_number, onsets, durations
task, 1, 1, 0 50 100 150, 25
task, 2, 1, 0 50 100 150, 25
rest, 1, 1, 25 75 125 175, 25
rest, 2, 1, 25 75 125 175, 25


note: leaving the subject_number or session_number empty in a row
indicates all subjects or all sessions: e.g.

condition_name, subject_number, session_number, onsets, durations
task, , , 0 50 100 150, 25
rest, , , 25 75 125 175, 25

Hope this helps
Alfonso
 
Originally posted by Xiaozhen You:
Hi Conn expert,
I'm trying to set up gPPI with some complicated design that's different for each individual. What's the format of the condition text file that was provided as option to import in "condition"? seems it doesn't like fsl format.
Thanks again for your wonderful tool!
Xiaozhen

Threaded View

TitleAuthorDate
Xiaozhen You Feb 1, 2017
RE: Import condition text file format
Alfonso Nieto-Castanon Feb 7, 2017
aj2337 Dec 21, 2020
Alfonso Nieto-Castanon Dec 21, 2020
aj2337 Dec 22, 2020
Alfonso Nieto-Castanon Jan 9, 2021
syoun Jun 4, 2021
Samantha Audrain Oct 4, 2021
Alfonso Nieto-Castanon Oct 4, 2021