Antonino Ingargiola edited Background estimation.tex  over 9 years ago

Commit id: 2766c35cdd8a3660c73d38df67d61d35024ce9f3

deletions | additions      

       

\subsection{Background estimation}  The first step of smFRET analysis involves estimating the background level. In fact, even when no molecule is crossing the excitation volume, there are "counts" originating from detectors dark counting rates (DCR), samples scattering and auto-fluorescence. Figure~\ref{fig:bgdist} shows the typical distribution of timestamps delays (waiting times between two subsequent timestamps) in a smFRET measurement. The "tail" of the distribution (a line in semi-log scale) corresponds to exponetially-distributed exponentially-distributed  delays, indicating that a Poisson process is generating those counts. At short timescales, the distribution departs from the exponential due to the bursts of photons from diffusing single-molecules (the signal). To estimate the background rate, (i.e. the expontential exponential  time constant) we need to select a minimum threshold above which the distribution can be considered exponential. In practice we need to estimate the background for all the different photon streams. Furthermore, since the background rate can typically changes change  during the measurement on time scales of tens of seconds or minutes, we want to estimate it periodically. In FRETBursts we call \textit{backgroun period} the time duration for each background estimation. For example, to compute the background every 30s, using a threshold of 2 ms for all the photon streams we execute:  \verb|d.calc_bg(bg.exp_fit, time_s=30, tail_min_us=2000)|  Here, the first argument is the actual fitting function used to fit the background in each period and for each photon stream. The function \verb|bg.exp_fit| fits the background using a Maximum Likelihood Estimation (MLE) of the delays distribution. More fitting functions are avaliable in \verb|bg| namespace (see the \href{http://fretbursts.readthedocs.org/en/latest/background.html}{\verb|background| module}). The second argument, \verb|time_s|, is the background period and the third argument is the threshold above which the distribution is supposed to be exponential. It is possible to use a different threshold for each photon stream passing a tuple as tail_min_us (instead that a scalar). For an ALEX measurement the tuple needs to have 5 values corresponting to thresholds for the 5 photon streams. The list of photon streams for a \verb|Data| object can be found in the \verb|ph_streams| attribute (in the present example \verb|d.ph_streams|). Finally, is possible to use an a  heuristic estimation of the threshold using \verb|tail_min_us='auto'|. For more details refer to the \href{http://fretbursts.readthedocs.org/en/latest/data_class.html#fretbursts.burstlib.Data.calc_bg}{\verb|calc_bg| documentation}. \verb|d.calc_bg(bg.exp_fit, time_s=1000, tail_min_us='auto', F_bg=1.7)|