Skip to content

Commit 8f76163

Browse files
committed
added baseline charge subtraction to analysis
1 parent 48c70f3 commit 8f76163

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

Analysis/SK/AnnotatedScripts/Velocity_VoltageAtt_180913.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@
344344
%% Correct all velocities and export for Igor fitting of Boltzmann to each recording
345345

346346
% Set the filename
347-
fname = 'PatchData/attCorrectedVel(181204).xls';
347+
fname = 'PatchData/attCorrectedVel_subQ(190217).xls';
348348
noCorr = 0;
349349
normFlag = 1; %normalize to 40mm/s ramp (highest velocity "step")
350350
normVel = 39740; % must be negative for off
351351
tol = 12;
352-
dType = 'decay';
352+
dType = 'charge';
353353

354354
for i = 1:2
355355
whichRamp = i; % 1 for on currents, 2 for off currents
@@ -481,8 +481,8 @@
481481
%% Calculate ratios
482482
% re-save vel_Out as on/offVelChrg and on/offVelPeak for the corresponding
483483
% cases
484-
on = antOnCurr;
485-
off = antOff_Curr;
484+
on = antOnChar;
485+
off = antOffChar;
486486
out = on(1,:);
487487

488488
onVel = [on{2:end,1}];

Analysis/SK/Scripts-in-progress/wtVsFat_Ramps.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,19 @@
7474

7575

7676
%% Find MRCs
77-
% antAllSteps(180810).xlsx and antAllStepsFat(181129).xlsx
77+
% antAllRampsWT(180810).xlsx and antAllRampsFat(181129).xlsx
7878
protList ={'DispRate'};
7979
matchType = 'first';
8080

8181
sortSweeps = {'velocity','velocity','magnitude','magnitude'};
8282

8383
wtMRCs = IdAnalysis(ephysData,protList,wtCells,'num','matchType',matchType, ...
8484
'tauType','thalfmax', 'sortSweepsBy', sortSweeps, 'integrateCurrent',1 , ...
85-
'recParameters', ephysMetaData,'sepByStimDistance',1);
85+
'recParameters', ephysMetaData,'sepByStimDistance',1,'subZeroCharge',1);
8686

8787
fatMRCs = IdAnalysis(ephysData,protList,fatCells,'num','matchType',matchType, ...
8888
'tauType','thalfmax', 'sortSweepsBy', sortSweeps, 'integrateCurrent',1 , ...
89-
'recParameters', ephysMetaData,'sepByStimDistance',1);
89+
'recParameters', ephysMetaData,'sepByStimDistance',1,'subZeroCharge',1);
9090

9191
clear protList sortSweeps matchType
9292

@@ -95,7 +95,7 @@
9595
%% Correct all sizes and export for Igor fitting of Boltzmann to each recording
9696

9797
% Set the filename and parameters
98-
fname = 'PatchData/ramps_wtVsFat_2p5kHz_allDist(181130).xlsx';
98+
fname = 'PatchData/ramps_wtVsFat_allFreq_allDist(190218).xlsx';
9999

100100
tol = 12;
101101

@@ -116,7 +116,7 @@
116116
corrOn = 0; %no voltage attenuation correction if 0
117117

118118
whichMRCs = wtMRCs;
119-
dType = 'curr';
119+
dType = 'decay';
120120

121121
switch dType
122122
case 'curr'

Analysis/SK/Scripts-in-progress/wtVsFat_Steps.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969

7070
wtMRCs = IdAnalysis(ephysData,protList,wtCells,'num','matchType',matchType, ...
7171
'tauType','thalfmax', 'sortSweepsBy', sortSweeps, 'integrateCurrent',1 , ...
72-
'recParameters', ephysMetaData,'sepByStimDistance',1);
72+
'recParameters', ephysMetaData,'sepByStimDistance',1,'subZeroCharge',1);
7373

7474
fatMRCs = IdAnalysis(ephysData,protList,fatCells,'num','matchType',matchType, ...
7575
'tauType','thalfmax', 'sortSweepsBy', sortSweeps, 'integrateCurrent',1 , ...
76-
'recParameters', ephysMetaData,'sepByStimDistance',1);
76+
'recParameters', ephysMetaData,'sepByStimDistance',1,'subZeroCharge',1);
7777

7878
clear protList sortSweeps matchType
7979

@@ -82,7 +82,7 @@
8282
%% Correct all sizes and export for Igor fitting of Boltzmann to each recording
8383

8484
% Set the filename and parameters
85-
fname = 'PatchData/steps_CC_wtVsFat_2p5kHz_allDist(181129).xlsx';
85+
fname = 'PatchData/steps_wtVsFat_2p5kHz_allDist_subQ(181129).xlsx';
8686

8787
eachSize = [0.5 1 1.5 3 4 5 6 7 8 9 10 11 12]';
8888
distLimits = [40 200]; % limit to same average distance for anterior and posterior
@@ -94,10 +94,10 @@
9494
% Step to normalize to
9595
normFlag = 1; % yes, add normalized sheets
9696
normStepSize = 10; % must be negative for off
97-
corrOn = 1 %no voltage attenuation correction if 0
97+
corrOn = 0; %no voltage attenuation correction if 0
9898

9999
whichMRCs = wtMRCs;
100-
dType = 'curr';
100+
dType = 'decay';
101101

102102
switch dType
103103
case 'curr'

0 commit comments

Comments
 (0)