def __init__(self, dd_img:np.ndarray, da_img:np.ndarray,
ad_img:np.ndarray, aa_img:np.ndarray,
abcd_list:list[int,...], G_val:float, **kwargs):
""" Class for estimating FRET efficiency in image time series.
__WF_2x_2m instance type as input is recommended__
Parameters
----------
dd_img: ndarray [t,x,y]
image time series with donor excitation-donor emission
da_img: ndarray [t,x,y]
image time series with donor excitation-acceptor emission
ad_img: ndarray [t,x,y]
image time series with acceptor excitation-donor emission
aa_img: ndarray [t,x,y]
image time series with acceptor excitation-acceptor emission
abcd_list: list
list of crosstalk coefficients
G_val: float
gauge ("G") parameter of imaging system
Attributes
----------
DD_img: ndarray [t,x,y]
image time series with donor excitation-donor emission
(e.g. 435 nm - CFP ch.)
DA_img: ndarray [t,x,y]
image time series with donor excitation-acceptor emission
(e.g. 435 nm - YFP ch.)
AD_img: ndarray [t,x,y]
image time series with acceptor excitation-donor emission
(e.g. 505 nm - CFP ch.)
AA_img: ndarray [t,x,y]
image time series with acceptor excitation-acceptor emission\
(e.g. 505 nm - YFP ch.)
a: float
acceptor bleedthrough coefficient (I_DA(A) / I_AA(A))
b: float
acceptor bleedthrough coefficient (I_DD(A) / I_AA(A))
c: float
donor bleedthrough coefficient (I_AA(D) / I_DD(D))
d: float
donor bleedthrough coefficient (I_DA(D) / I_DD(D))
G: float
gauge ("G") parameter of imaging system
Fc_img: ndarray [t,x,y]
image time series of sensitized fluorescence
R_img: ndarray [t,x,y]
image time series of sensitized fluorescence to donor emission ratio
(F_c / I_DD)
Eapp_img: ndarray [t,x,y]
image time series of E-FRET
Ecorr_img: ndarray [t,x,y]
image time series of E-FRET corrected for photobleaching
"""
self.DD_img = dd_img # 435-CFP DD
self.DA_img = da_img # 435-YFP DA
self.AD_img = ad_img # 505-CFP AD
self.AA_img = aa_img # 505-YFP AA
self.a = abcd_list[0]
self.b = abcd_list[1]
self.c = abcd_list[2]
self.d = abcd_list[3]
self.G = G_val
self.Fc_img = self.Fc_calc(dd_img=self.DD_img,
da_img=self.DA_img,
aa_img=self.AA_img,
a=self.a, b=self.b, c=self.c, d=self.d)
self.R_img, self.Eapp_img = self.E_app_calc(fc_img=self.Fc_img,
dd_img=self.DD_img,
G=self.G)
self.Ecorr_img = self.E_cor_calc(e_app_img=self.Eapp_img,
aa_img=self.AA_img,
dd_img=self.DD_img,
c=self.c,
**kwargs)