This package includes MATLAB functions to analysis direction/orientation selectivity from wide-field and two-photon calcium imaging data, recorded in classic experiments during which stimuli with specific directions/orientations were presented to the aniaml.
David Hubel and Torsten Wiesel shared the 1981 Nobel Prize in Physiology or Medicine by finding neurons in the primary visual cortex of mammals have orientation/direction selectivity.
- Add the folder to MATLAB path
- Check the scripts for examples
- Usually drifting gratings with specific directions are presented and response of brain/neruons is recorded
- The directions must span the entire 360 degree
- The oppose directions (e.g. 30 and 210, 60 and 240) must be included
- Usually the same length of blank screen follows each stimulus
- Repeat for more than 10 trials is recommanded.
e.g. 10 trials x 12 direction gratings x (4 sec for stimuli + 4 sec for blank) = 960 sec = 16 minutes of imaging data.
-
Pixel statistics across the time dimension of the data are computed, maps and histograms will be generated for visualization
-
HSV pseudocolor maps indicating orientation and direction seletivity of each pixels will be generated
the following is example HSV pseudocolor maps where
Hue: prefered direction/orientation
Saturation: gDSI/gOSI
Value: some pixel statistics, the following ones use pixel correlation with its surround neighbors
-
Time series of each neruon will be extracted and averaged across trial
-
The
gDSI
andgOSI
of each neuron will be computed -
Tuning curves of each neuron will be fitted by a wrapped gaussian function with several constrains
-
The
DSI
andOSI
of each fitted tuning curve will be computed
the following is example tuning curve maps where red line is fitted curve
add statistical test for significance
Refer this paper for detailed method
-
make the code a matlab package to avoid name conflicts
-
get rid of config file use the script to set parameters
-
add additional visualization functions
-
you can choose different ways to normalize imaging data and calculate response