%Guide for the uniform spot analysis %Check out the Documentation_Data.pdf, which contains relevant information %for analysing the uniform stimulus clear; close all; %% Set the general variable (the same for all spot versions) loadData='Z:\Spot\'; %path of the BC files for uniform spot (has to be adapted to your own path) spotDuration=500; % given in the excel file LogInfo_UniformSpot.xlsx grayDuration=1000; % given in the excel file LogInfo_UniformSpot.xlsx for the corresponding file %% run spot analysis for stimulus version 1 and 2 %path for the stimulus signal for verion 1 or 2 -> here the black and white %spots are recorded in different files filename='172030015Comp.mat'; %BC file to analyse (black spot): for example here we use file 172030015Comp from cell 1, recorded in retina 1 on 170203 filename2='172030016Comp.mat'; %BC file to analyse (white spot): for example here we use file 172030016Comp from cell 1, recorded in retina 1 on 170203 spotVersion=2;% uniform spot version given in excel file LogInfo_UniformSpot.xlsx %get the path for loading the stimulus signal: stimulusVersion1.mat or %stimulusVersion2.mat if spotVersion==1 % Path for loading the stimulus version 1: stimulusVersion1.mat pathStimSignal='Z:\Manuscript\BC_XY_LN\Puplishing\DataAvailable\Spot\stimulusVersion1.mat'; %has to be adapted to your own structure elseif spotVersion==2 % Path for loading the stimulus signal version 2: stimulusVersion2.mat pathStimSignal='Z:\Manuscript\BC_XY_LN\Puplishing\DataAvailable\Spot\stimulusVersion2.mat'; end [patternedSpot_output]=BC_uniformSpot(loadData,filename,filename2,spotDuration,... grayDuration,spotVersion,pathStimSignal);%example code to analyze the responses to the uniform spots %% run spot analysis for stimulus version 3 filename='18d130037Comp.mat'; %BC file to analyse, here you only have one file: 18d130037Comp for cell1 in retina 3 on 181213 pathStimSignal='Z:\Manuscript\BC_XY_LN\Puplishing\DataAvailable\Spot\stimulusVersion3.mat'; %to get the path for loading the stimulus signal start_blackSpot=1; end_blackSpot=111; start_whiteSpot=112; end_whiteSpot=222; inputFrames=[start_blackSpot,end_blackSpot,start_whiteSpot,end_whiteSpot]; [patternedSpot_output3]=BC_uniformSpot3(loadData,filename,spotDuration,grayDuration, ... inputFrames,pathStimSignal);%example code to analyze the responses to uniform spots %% run spot analysis for stimulus version 4 filename='15o160046Comp.mat'; %BC file to analyse, here you only have one file: 15o160046Comp for cell 3 in retina 2 on the 151016 grayDuration=4000; % given in the excel file LogInfo_UniformSpot.xlsx for the corresponding file [patternedSpot_output4]=BC_uniformSpot4(loadData,filename,spotDuration,grayDuration);%example code to preprocess the reversing uniform spots