estimate_gE_leak_ramp(staircase) orestimate_gE_leak_step(validation signals)- linear regression
- Figure S2B in the publication (Rapid I)
correct_gE_leak_rampHaving separate from estimation would allow estimate to be re-used on traces without ramps or suitable steps- E-4031 subtraction (0.5uM E-4031 vs dimethyl vehicle)
Not sure where to implement
- Figure S2A
estimate_reversal_potential_ramp- Third order poylnomial
- Figure S2C or Figure 10A
- Output: EK
- In Chon's code
fit_EK_polyinqc/analyse-ek.py
- Correct leak correction (validation protocols only (except act/inact?)
- "These leak corrections can overcorrect or undercorrect."
- "IKr should only be negative when the voltage is below its reversal potential, approximately -85.2 mV (NERNST)"
- "If the leak-corrected current showed a negative current at voltages substantially larger than NERNST, we concluded we overestimated leak."
- Most noticeable during highest V in staircase (max I leak)
- For each validation proto, we specified a time window during which we believe IKr should be almost zero (please refer to our GitHub repository for detail).
- To rectify the over- or undercorrection, we re-estimated the leak correction by adding an extra linear leak current of the form
g * (V + 80), withgchosen to makemean(I_window) = 0
QC No cell: Not in paper: Well not listed, orR_seal,C_m, orR_seriesisNoneQC1.Rseal: R_seal in [.1, 1000] GOhm- Needs trace that provides R_seal, needs lower and upper bound
QC1.Cm: C_m in [1, 100] pF- Needs trace that provides C_m, needs lower and upper bound
QC1.Rseries: R_series in [1, 25] MOhm- Needs trace that provides R_series, needs lower and upper bound
QC2.rawassnr = (np.std(c) / np.std(c[:200]))**2andsnr < 25 or not np.isfinite(np.std(c))
- EK histogram of 124 accepted wells
- Figure 10B
X. Bar plots of number filtered out on each QC crit
estimate_max_conductanceIn Supplement to Rapid 2, showing a single exp fit to a tail current and using the max as max current the max value