H2 recordings data And Plot Script
Patch recording data for H2 neuron's local preferred direction measurement. Accompanying this following publication:
https://www.biorxiv.org/content/10.1101/2022.12.14.520178
File description:
dataAndPlotScript.zip includes the following files, which are tested on Matlab 2023b
1. edgeDataAndTable.mat - contains 2 Matlab variables:
1a. edgeStruct - Matlab Structure, contains data from the 7 H2 cells. Each cell contains data from 2 stimulus protocols (visual display was rotated in between protocols). 'edgeStruct(cell_number).aligned(protocol_number)' will access all the data from a cell_number and protocol_number. Data is temporally aligned to visual stimulus onset. 'data' field contains 'align' structure, which in turn contains all the repeated responses to the same stimulus (the 'rep' field) as well as the mean and median responses ('mean' and 'medMean' respectively). The aligned structure also contains the extracted spike raster for each repeat ('spikRas').
1b. edgeTable - Matlab table, used to index 'edgeStruct' data. Each row describes a unique cell-protocol-stimulus combination where 'newIndex' column is the index into the 'aligned' structure for that cell and protocol. Each row in 'edgeTable' describes the characteristics of the presented visual stimulus (duration, orientation, edge value, etc. )
2. plotSuppFigAllEdgePolarScript.m - Matlab script to generate Extended Data Figure X. The script should be run from the same directory that contains the above dataset and the accessory function below.
3. generatePositionCell.m - Accessory Matlab function that is used in the plotting script to generate the positions for the subplots. Function is called from within the script and the User does not need to interact with it directly.