Difference between revisions of "TASKSWITCHING"

From Pheno Wiki
Jump to: navigation, search
(Scoring Behavioral Data AND Creating Onset Files)
(Scoring Behavioral Data AND Creating Onset Files)
Line 48: Line 48:
 
There is just one TS scoring script, which makes onset files and behavioral output at same time. <br/>
 
There is just one TS scoring script, which makes onset files and behavioral output at same time. <br/>
 
1. Scripts can either be run so that you do all subjects of a given group at once, or do one subject at a time. There are comments in the code that instruct you to indicate first with group (e.g., CONTROLS) you will be doing. By default, it will run all subjects in the selected group unless you choose to comment in a couple lines and enter in a particular subject's ID (e.g., CNP_10150).  <br/>
 
1. Scripts can either be run so that you do all subjects of a given group at once, or do one subject at a time. There are comments in the code that instruct you to indicate first with group (e.g., CONTROLS) you will be doing. By default, it will run all subjects in the selected group unless you choose to comment in a couple lines and enter in a particular subject's ID (e.g., CNP_10150).  <br/>
 +
 
2. in matlab, run 'TASKSWITCH_onsets_analyze.m' <br/>
 
2. in matlab, run 'TASKSWITCH_onsets_analyze.m' <br/>
 
 
For BEHAVIORAL DATA, this will either create behavioral output (in SUBJ/behav/TASKSWITCH) for each subject in your group or just the subject you specified. This script creates 2 files: <br/>
 
For BEHAVIORAL DATA, this will either create behavioral output (in SUBJ/behav/TASKSWITCH) for each subject in your group or just the subject you specified. This script creates 2 files: <br/>
 
a. It adds to the 'GROUP_TASKSWITCH_group_output.txt' file, by adding a line for each subject with their summary scores. <br/>
 
a. It adds to the 'GROUP_TASKSWITCH_group_output.txt' file, by adding a line for each subject with their summary scores. <br/>
 
b. It creates a 'SUBJ_TASKSWITCH_behav_output.txt' file in the subject's behav/TASKSWITCH directory (as well as a trial-by-trial summary file). <br/>
 
b. It creates a 'SUBJ_TASKSWITCH_behav_output.txt' file in the subject's behav/TASKSWITCH directory (as well as a trial-by-trial summary file). <br/>
 
The file created under 2a will be used for analysis of behavioral data collected during the TS scan. In most cases, this data will be provided after query. <br/>
 
The file created under 2a will be used for analysis of behavioral data collected during the TS scan. In most cases, this data will be provided after query. <br/>
 
 
For ONSET FILES: <br/>
 
For ONSET FILES: <br/>
 
a. The following onset files will be created in SUBJ/behav/TASKSWITCH, either for each subject in your group or just the subject you specified. <br/>
 
a. The following onset files will be created in SUBJ/behav/TASKSWITCH, either for each subject in your group or just the subject you specified. <br/>

Revision as of 15:33, 13 June 2012

TASK-SWITCHING TASK

Task Background Info

Sample Text

pending


Participants completed a total of 96 trials, for a total run time of 6 min 52 s.

For the practice run, participants completed 10 trials of the task. Before reading task instructions, experimenters would mention to participants that this task is difficulty for people, and that a lot of time people need to redo the demo more than once in order to get comfortable with the task, in order to reduce frustration on behalf of the participants. As the button order was counterbalanced across participants, instructions below represent one such button order (and were switched for other participants).

Task Instructions

Demo Instructions

This is a demo of the task in which you will learn to press the LEFT (blue) button or the RIGHT (yellow) button in response to color and shapes. The colors will be red or green. The shapes will be circles or triangles. Each trial starts with a cue indicating whether you should respond to color or shape. Try to respond as fast and as accurately as you can for each trial.

If the cue is “COLOR” or “C” respond to the color. Press the LEFT button if the color is RED. Press the RIGHT button if the color is GREEN. If the cue is “SHAPE” or “S” respond to the shape. Press the LEFT button if the shape is a TRIANGLE. Press the RIGHT button if the shape is a CIRCLE.

So, again, if the cue is “COLOR” or “C”: Press the LEFT button if the color is RED. Press the RIGHT button if the color is GREEN. If the cue is “SHAPE” or “S”: Press the LEFT button if the shape is a TRIANGLE. Press the RIGHT button if the shape is a CIRCLE.

Scan Instructions This task is the one where you have to respond to the color or the shape of images we show you on the screen as fast and as accurately as possible. At the top, you’ll see a cue that tells you what to respond to. If the cue says “COLOR” or “C,” you should respond to the color, and if it says “SHAPE” or “S” you should respond to the shape. When it says to respond to color, press the first button if it’s red, and the second button if it’s green. When it says to respond to shape, push the first button if it’s a triangle, and the second button if it’s a circle. Again, that’s red for button 1 and green for button 2, and triangle for button 1 and circle for button 2. Any questions?

Participants saw on the screen When cued with “S” or “Shape,” respond to the shape of the image. FIRST button = Circle SECOND button = Triangle

When cued with “C” or “Color,” respond to the color of the image. FIRST button = Red SECOND button = Green

Respond as quickly and as accurately as possible.

Scoring Behavioral Data AND Creating Onset Files

/space/raid2/data/poldrack/CNP/scripts/behav_analyze/TASKSWITCH

There is just one TS scoring script, which makes onset files and behavioral output at same time.
1. Scripts can either be run so that you do all subjects of a given group at once, or do one subject at a time. There are comments in the code that instruct you to indicate first with group (e.g., CONTROLS) you will be doing. By default, it will run all subjects in the selected group unless you choose to comment in a couple lines and enter in a particular subject's ID (e.g., CNP_10150).

2. in matlab, run 'TASKSWITCH_onsets_analyze.m'
For BEHAVIORAL DATA, this will either create behavioral output (in SUBJ/behav/TASKSWITCH) for each subject in your group or just the subject you specified. This script creates 2 files:
a. It adds to the 'GROUP_TASKSWITCH_group_output.txt' file, by adding a line for each subject with their summary scores.
b. It creates a 'SUBJ_TASKSWITCH_behav_output.txt' file in the subject's behav/TASKSWITCH directory (as well as a trial-by-trial summary file).
The file created under 2a will be used for analysis of behavioral data collected during the TS scan. In most cases, this data will be provided after query.
For ONSET FILES:
a. The following onset files will be created in SUBJ/behav/TASKSWITCH, either for each subject in your group or just the subject you specified.
'SUBJ_CongNSlong_ons.txt' 'SUBJ_CongNSshort_ons.txt' 'SUBJ_CongSlong_ons.txt' 'SUBJ_CongSshort_ons.txt' 'SUBJ_InconNSlong_ons.txt' 'SUBJ_InconNSshort_ons.txt' 'SUBJ_InconSlong_ons.txt' 'SUBJ_InconSshort_ons.txt' Each onset file is in the same 3-column format as other tasks, with Onset time, Duration, and Weight--with Duration = RT on that trial, and Weight fixed at 1 for all trials.

b. The script also creates a 'GROUP_TASKSWITCH_log.txt' file that flags any subject with an empty onset file for a given trial type. In this case, the subject would need to be flagged.

Creating Onset Files (EVs)

Running First Level Analyses

List of Models

Behavioral Variables


Link back to LA5C page.