https://github.com/HF-GH/ASD
Raw File
Tip revision: 313acbcb7ec08606d1a3332c6ee8645a091aae1a authored by HF-GH on 11 July 2021, 17:26:51 UTC
Create LICENSE
Tip revision: 313acbc
README.md
Full details regarding the data analysis and results of this project can be found in: 
**Feigin, H., Shalom-Sperber, S., Zachor, D. A., & Zaidel, A. (2021). 
Increased influence of prior choices on perceptual decisions in autism. Elife, 10, e61595.**

*******************************************************************************************************************************

*******************************************************************************************************************************
# ASD - location discrimination task

*******************************************************************************************************************************

*******************************************************************************************************************************
For plotting psychometric curves for each participant (and experimental condition):

1. download and install the psignifit4 toolbox (from: https://github.com/wichmann-lab/psignifit)
	and make sure it is included in the Matlab path
2. download code: "plot_psych_curves_loc_task.m"
3. download data: "loc_summ_data4PSE.m"
4. make sure both files are in the same directory
5. run the code 

*******************************************************************************************************************************
For analyzing psychometric curves and perceptual decision models results:

1. download and install the psignifit4 toolbox (from: https://github.com/wichmann-lab/psignifit)
	and make sure it is included in the Matlab path
2. download code: "analyze_loc_task_updated"
3. download data file: "loc_data.m"
4. make sure all files are in the same directory
5. run the code
6. optional - if you do not wish to run the code, you can skip steps 1-5 and simply download the results file: "loc_res.m"
	(for information regarding the results file, please see 'additional information for analyzing the data' section below).

*******************************************************************************************************************************
Additional information for plotting psychometric curves (details regarding the structure of "loc_summ_data4PSE.mat"): 

The data is organized as structure with two fields, one for each experimental condition (primary and response invariant). 
Each of them includes two additional fields, one for each group (asd and control). 
Each group includes separate fields for each participant, 
which contain the summarized information needed for calculating the psychometric curves. 
Each participant has two fields - left_priors and right_priors. 
Each of them contains a matrix with three columns: 
1. stimulus intensity (stimulus location in degrees)
2. the number of rightward choices (for the specific intensity)
3. the number of trials that included this intensity choices.

The code uses psignifit4 functions to calculate and plot the psychometric curves (the psignifit4 toolbox needs to be downloaded and included in the Matlab path).

*******************************************************************************************************************************
Additional information for analyzing the data (details regarding the structure of "loc_data.m" and "loc_res.m"):


The data is organized as structure with two fields, one for each experimental condition (primary and response invariant). 
Each of them includes two additional fields, one for each group (asd and control). 

Each group includes separate fields for each participant, which contain a table with several columns: 
1. loc_deg (stimulus location in degrees)
2. prior_type (priors' type, such that right priors are coded as "1" and left priors as "-1")
3. stim_num (stimulus number within a specific trial: 
	the test stimulus is coded as "0", the preceding prior as "1", the one before that as "2", etc.)
4. test_stim (test stim are coded as "1" and priors are coded as "0")
5. ans (participant's response; "right" is coded as "1" and "left" is % coded as "-1"
6. corr (was the response correct or not; correct responses are coded as "1" and incorrect as "0")
7. rt (response time in seconds). 
The response invariant condition table includes an additional column:
8. prior_color (priors were either green or purple, coded as "1" and "2", counterbalanced between participants. 
	Test circles were always white, and their color is coded as "0").

The PSE calculation is done using the psignifit4 toolbox (which needs to be downloaded and included in the Matlab path).

Perceptual decision model coefficients (model output) can be found under the 'decision_model_coeff' field 
in the results file, such that: 
1. general bias
2. current stimulus
3. prev. choices
4. prev. stim.

Similarly, 5-back model perceptual decision model coefficients an be found under the 'decision_model_5_back_coeff' 
field in the results file, such that: 
1. general bias
2. current stimulus
3. one-back choice
4. two-back choice
5. three-back choice
6. four-back choice
7. five-back choice
8. one-back stim
9. two-back stim
10. three-back stim
11. four-back stim
12. five-back stim

The coefficients of the additional 5-back model perceptual decision model that includes only prev. choices (and not prev. stimuli) 
can be found under the 'decision_model_5_choices_coeff' field in the results file, such that: 
1. general bias
2. current stimulus
3. one-back choice
4. two-back choice
5. three-back choice
6. four-back choice
7. five-back choice
*******************************************************************************************************************************

back to top