A collection of functions for dwell time ideal, asymptotic and exact probabulity density function calculations.
DC_PyPs project are pure Python implementations of Q-Matrix formalisms for ion channel research. To learn more about kinetic analysis of ion channels see the references below.
CH82: Colquhoun D, Hawkes AG (1982) On the stochastic properties of bursts of single ion channel openings and of clusters of bursts. Phil Trans R Soc Lond B 300, 1-59.
HJC92: Hawkes AG, Jalali A, Colquhoun D (1992) Asymptotic distributions of apparent open times and shut times in a single channel record allowing for the omission of brief events. Phil Trans R Soc Lond B 337, 383-404.
CH95a: Colquhoun D, Hawkes AG (1995a) The principles of the stochastic interpretation of ion channel mechanisms. In: Single-channel recording. 2nd ed. (Eds: Sakmann B, Neher E) Plenum Press, New York, pp. 397-482.
CH95b: Colquhoun D, Hawkes AG (1995b) A Q-Matrix Cookbook. In: Single-channel recording. 2nd ed. (Eds: Sakmann B, Neher E) Plenum Press, New York, pp. 589-633.
Find the areas of the asymptotic pdf (Eq. 58, HJC92).
Parameters : | tres : float
roots : array_like, shape (1,kA)
QAA : array_like, shape (kA, kA) QFF : array_like, shape (kF, kF) QAF : array_like, shape (kA, kF) QFA : array_like, shape (kF, kA)
kA : int
kF : int
GAF : array_like, shape (kA, kB) GFA : array_like, shape (kB, kA)
|
---|---|
Returns : | areas : ndarray, shape (1, kA) |
Find roots for the asymptotic probability density function (Eqs. 52-58, HJC92).
Parameters : | tres : float
QAA : array_like, shape (kA, kA) QFF : array_like, shape (kF, kF) QAF : array_like, shape (kA, kF) QFA : array_like, shape (kF, kA)
kA : int
kF : int
|
---|---|
Returns : | roots : array_like, shape (1, kA) |
Calculate gama coeficients for the exact open time pdf (Eq. 3.22, HJC90).
Parameters : | tres : float mec : dcpyps.Mechanism
open : bool
|
---|---|
Returns : | eigen : array_like, shape (k,)
gama00, gama10, gama11 : lists of floats
|
Calculate exact mean open or shut time from HJC probability density function.
Parameters : | tres : float
QAA : array_like, shape (kA, kA) QFF : array_like, shape (kF, kF) QAF : array_like, shape (kA, kF)
kA : int
kF : int
GAF : array_like, shape (kA, kB) GFA : array_like, shape (kB, kA)
|
---|---|
Returns : | mean : float
|
Calculate exponential probabolity density function with exact solution for missed events correction (Eq. 21, HJC92).
Parameters : | t : float
tres : float
roots : array_like, shape (k,) areas : array_like, shape (k,) eigvals : array_like, shape (k,)
gama00, gama10, gama11 : lists of floats
|
---|---|
Returns : | f : float |
Probability density function of the open time. f(t) = phiOp * exp(-QAA * t) * (-QAA) * uA For shut time pdf A by F in function call.
Parameters : | t : float
QAA : array_like, shape (kA, kA)
phiA : array_like, shape (1, kA)
|
---|---|
Returns : | f : float |
Calculate time constants and areas for an ideal (no missed events) exponential open time probability density function. For shut time pdf A by F in function call.
Parameters : | t : float
QAA : array_like, shape (kA, kA)
phiA : array_like, shape (1, kA)
|
---|---|
Returns : | taus : ndarray, shape(k, 1)
areas : ndarray, shape(k, 1)
|
Calculate mean latency to next opening (shutting), given starting in specified shut (open) state.
mean latency given starting state = pF(0) * inv(-QFF) * uF
F- all shut states (change to A for mean latency to next shutting calculation), p(0) = [0 0 0 ..1.. 0] - a row vector with 1 for state in question and 0 for all other states.
Parameters : | mec : instance of type Mechanism state : int
|
---|---|
Returns : | mean : float
|
Calculate mean life time in a specified subset. Add all rates out of subset to get total rate out. Skip rates within subset.
Parameters : | mec : instance of type Mechanism state1,state2 : int
|
---|---|
Returns : | mean : float
|