- Load your data into DataViewer.
- Create a Trial Report with the following variables. (Analysis > Reports > Trial Report). Note: you will have to do this separately for each scan run). You can do it for multiple subjects at a single time, as long as you import them all into the same DataViewer session.
RECORDING_SESSION_LABELINDEXVIDEO_ELAPSED_TIME_FROM_PULSERESPONSE_ELAPSED_TIME_FROM_PULSEimagetypeemotion(for SPONT runs)type(for SPR runs)
- Save your report with the following format, where
??is the subject number (e.g., 01, 02, etc.).- Spontaneous run 1:
SPONT1_sub??.txt - Spontaneous run 2:
SPONT2_sub??.txt - SPR run 1:
SPR1_sub??.txt - SPR run 2:
SPR2_sub??.txt
- Spontaneous run 1:
- Create separate folders for
SPONTandSPR. - Copy the
.txtTrial Reports to their corresponding folders (SPONT1ANDSPONT2should go to theSPONTfolder). - For each experiment (
SPONTandSPR), there are two scripts that will create your timing files. Copy the scripts into your newSPONTandSPRfiles.SPONT:spont_timings.pyandmultiple_spont_timings.shSPR:spr_timings.pyandmultiple_spr_timings.sh
- Navigate (use
cd) into either theSPRorSPONTfolder. You should have the two script files and all of your trials report files in this folder. - Edit line 2 of the
multiplescript. Change01to a list of the subjects you would like to create timing files for.- E.g.,
01 02 07 14
- E.g.,
- Save the
multiplescript. - Run the
multiplescript.sh multiple_spont_timings.shsh multiple_spr_timings.sh
- If everything went right, you should end up with some 1D files containing the timing information in the format that AFNI is looking for.
Your SPONT folder should look similar to this:
Your SPR folder should look similar to this:

