원시데이터 수집 시스템
선정목록으로

A simple method for getting standard error on the ratiometric calcium estimator

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. Simon Heß — Institute for Zoology, Biocenter and Cologne Excellence Cluster in Aging Associated Diseases (CECAD), University of Cologne, Cologne, Germany
  2. Christophe Pouzat — IRMA, Strasbourg University and CNRS UMR 7501, Strasbourg, France
  3. Peter Kloppenburg — Institute for Zoology, Biocenter and Cologne Excellence Cluster in Aging Associated Diseases (CECAD), University of Cologne, Cologne, Germany
DOI
10.1016/j.mex.2021.101548
저널
MethodsX
발행년도
2021
발행기관
Elsevier BV
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.mex.2021.101548
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W3211071810

평가 내용

관련도
관련
사업분야
필름·전자재료 · (14) 드라이 필름(포토레지스트)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The ratiometric fluorescent calcium indicator Fura-2 plays a fundamental role in the investigation of cellular calcium dynamics. Despite of its widespread use in the last 30 years, only one publication (Joucla et al., 2010)) proposed a way of obtaining confidence intervals on fitted calcium dynamic model parameters from single 'calcium transients'. Shortcomings of this approach are its requirement for a '3 wavelengths' protocol (excitation at 340 and 380 nm as usual plus at 360 nm, the isosbestic point) as well as the need for an autofluorence / background fluorescence model at each wavelength. Here, we propose a simpler method that eliminates both shortcommings:1.a precise estimation of the standard errors of the raw data is obtained first,2.the standard error of the ratiometric calcium estimator (a function of the raw data values) is derived using both the propagation of uncertainty and a Monte-Carlo method.Once meaningful standard errors for calcium estimates are available, standard errors on fitted model parameters follow directly from the use of nonlinear least-squares optimization algorithms.

본문 39,399자

본문 펼치기
# A Simple Method for Getting Standard Error on the Ratiometric Calcium Estimator ## Simon Hess 1 ⋆, Christophe Pouzat 2 ⋆, Peter Kloppenburg 1 December 15, 2020 Affiliations 1 Simon Hess and Peter Kloppenburg Institute for Zoology Biocenter and Cologne Excellence Cluster in Aging Associated Diseases (CECAD) University of Cologne Cologne Germany 2 Christophe Pouzat IRMA Strasbourg University and CNRS UMR 7501 Strasbourg France Correspondance should be addressed to: C. Pouzat IRMA 7 rue Ren´e-Descartes 67084 Strasbourg Cedex France christophe.pouzat@math.unistra.fr _⋆_ Simon Hess and Christophe Pouzat contributed equally 1 ## 1. Abstract The ratiometric fluorescent calcium indicator Fura-2 plays a fundamental role in the investigation of cellular calcium dynamics. Despite of its widespread use in the last 30 years, only one publication [2] proposed a way of obtaining confidence intervals on fitted calcium dynamic model parameters from single ’calcium transients’. Shortcomings of this approach are its requirement for a ’3 wavelengths’ protocol (excitation at 340 and 380 nm as usual plus at 360 nm, the isosbectic point) as well as the need for an autofluorence / background fluorescence model at each wavelength. We propose here a simpler method that eliminates both shortcommings: 1. a precise estimation of the standard errors of the raw data is obtained first, 2. the standard error of the ratiometric calcium estimator (a function of the raw data values) is derived using both the propagation of uncertainty and a Monte-Carlo method. Once meaningful standard errors for calcium estimates are available, standard errors on fitted model parameters follow directly from the use of nonlinear least-squares optimization algorithms. ## 2. Graphical abstract 2 Figure 1: How to get error bars on the ratiometric calcium estimator? The figure is to be read clockwise from the bottom right corner. The two measurements areas (region of interest, ROI, on the cell body and background measurement region, BMR, outside of the cell) are displayed on the frame corresponding to one actual experiment. Two measurements, one following an excitation at 340 nm and the other following an excitation at 380 nm are performed (at each ’time point’) from each region. The result is a set of four measures: adu340 (from the ROI), adu340B (from the BMR), adu380 and adu380B. _These_ _measurements_ _are_ _modeled_ _as_ _realizations_ _of_ _Gaussian_ _random_ _variables_ . The fact that the measurements as well as the subsequent quantities derived from them are random variable realization is conveyed throughout the figure by the use of Gaussian probability densities. The densities from the MRB are ’tighter’ because there are much more pixels in the MRB than in the ROI (the standard deviations of the densities shown on this figure have been enlarged for clarity, but their relative size has been preserved, the horizontal axis in black always starts at 0). The key result of the paper is that the standard deviation of the four Gaussian densities corresponding to the raw data (bottom of the figure) can be reliably estimated _√_ from the data alone, _eg_ _σ_ 380 _≈_ _G adu_ 380 + _V_, where _V_ is the product of the _√_ from the data alone, _eg_ _σ_ 380 _≈_ _G adu_ 380 + _V_, where _V_ is the product of the CCD chip gain squared by the number of pixels in the ROI by the CCD chip readout variance. The algebric operations leading to the estimator (top right) are explicitely displayed. The paper explains how to compute the standard deviation of the derived distributions obtained at each step of the calcium concentration estimation. Method name Standard error for the ratiometric calcium estimator Keywords Calcium measurements, Fura-2, propagation of uncertainty, propagation of errors, Monte-Carlo method. ## 3. Method overview 3.1. Rational Since its introduction by [1], the ratiometric indicator Fura-2 has led to a revolution in our understanding of the role of calcium ions (Ca <sup>2+</sup> ) in neuronal and cellular function. This indicator provides a straightforward estimation of the free Ca <sup>2+</sup> concentration ([Ca <sup>2+</sup> ]) in neurons and cells with a fine spatial and time resolution. The experimentalist must determin a ’region of interest’ ( `ROI` ) within which the [Ca <sup>2+</sup> ] can be assumed uniform and is scientifically relevant. Fluorescence must be measured following excitation at two different wavelengths: typically around 340 and 380 nm; and, since cells exhibit autofluorescence or ’background fluorescence’ at those wavelengths, the measured fluorescence intensity is made of two sources: the Fura-2 linked fluorescence and the autofluorescence. The measured intensity within the ROI is therefore usually corrected by subtrating from it an estimation of the autofluorescence intensity obtained from simultaneous measurements from a ’background measurement region’ ( `BMR` ); that is, a nearby region where there is no 3 Fura-2. At a given time the experimentalist will therefore collect a fluorescence intensity measurement from the ROI at 340 and 380 nm; we are going to write `adu340` and `adu380` these measurements, where ’adu’ stands for ’analog to digital unit’ and correspond to the raw output of the fluorescence measurement device, most frequently a charge-coupled device ( `CCD` ). The experimentalist will also collect intensity measurements from the BMR, measurements that we are going to write `adu340B` and `adu380B` . If `P` CCD pixels make the ROI and `P` ~~`B`~~ pixels make the BMR and if the illumination time at 340 nm is `T` ~~`3`~~ `40`, while the illumination time at 380 nm is `T` ~~`3`~~ `80` (both times are measured in _s_ ), the experimentalist starts by estimating the fluorescence intensity per pixel per time unit following an excitation by a light flash of wavelengths _λ_ ( _λ_ = 340 or 380 nm) as: _,_ with _λ_ = 340 or 380 nm _,_ (1) _fλ_ = <sup>1</sup> T _λ_ - adu _λ_ _−_ <sup>adu</sup> <sup>_λ_</sup> <sup>B</sup> P PB where an assumption of autofluorescence uniformity is implicitly made. The following ratio is then computed: _r_ = <sup>_f_</sup> <sup><u>340</u></sup> _f_ 380 _._ (2) This is an important and attractive feature of the method as well as the origin of its name. Since only ratios are subsequently used, geometric factors like the volume of the Fura loaded region under the ROI do not need to be estimated. The _estimated_ [Ca <sup>2+</sup> ] that we will write Ca <sup>�</sup> for short (the ’�’ sign is used for marking estimated values) is then obtained, following [1, Eq. 5, p. 3447], with: Ca =� _Kef f_ _r_ _<u>−</u>_ _Rmin_ _Rmax_ _−_ _r_ <sup>_,_</sup> (3) where _Kef f_ (measured in _µM_ ), _Rmin_ and _Rmax_ are calibrated parameters (the last two parameters are ratios and are dimensionless). If we now want to rigorously fit [Ca <sup>2+</sup> ] dynamics models to sequences of Ca, <sup>�</sup> we need to get _standard errors_, _σ_ Ca� <sup>, on our estimates.</sup> <sup>This is where the ratiometric method gets ’more</sup> involved’, at least if we want standard errors from a single transient as opposed to a mean of many transients. Despite the ubiquity of ratiometric measurements in neuroscience and cell physiology, we are aware of a single paper–by some of us [2]–where the ’standard error question’ was directly addressed. The method proposed in [2] requires a 3 wavelengths protocol: measurements at 340, 380 _and_ 360 (the isosbestic wavelength) nm; it drops, so to speak, the above advantage of working with a ratiometric estimator since it fits directly the adu340 and adu380 data (at the cost of estimating some geometry related parameters) and it requires a model of the autofluorescence dynamics if the latter is not stationnary. It therefore requires a slightly more complicated ’3 wavelengths’ recording protocol as well as a more involved fitting procedure. The dataset of the companion paper exhibits a clear but reversible autofluorescence rundown that cannot be ignored since autofluorescence accounts for half of the signal in the ROI. Rather that constructing / tailoring the accurate enough autofluorence models required by the ’direct approach’ of [2] we looked for an alternative method providing standard errors for the ratiometric estimator. 4 ## 4. Ratiometric estimator variance 4.1. Fluorescence intensity As detailed in [1, 2], the fluorescence intensities giving rise to the adu340, adu340B, adu380 and adu380B signals can be written as: _T_ 340 _P_ _,_ (4) _I_ 340 = - [ _Fura_ ] _<u>total</u>_ _φ_ _KF ura_ + [ _Ca_ <sup>2+</sup> ] - _Rmin Kef f_ + _Rmax_ [ _Ca_ <sup>2+</sup> ] - + _F_ 340 _B_ _I_ 340 _B_ = _F_ 340 _B T_ 340 _PB,_ (5) _T_ 380 _P_ _,_ (6) _I_ 380 = - [ _Fura_ ] _<u>total</u>_ _φ_ _KF ura_ + [ _Ca_ <sup>2+</sup> ] - _Kef f_ + [ _Ca_ <sup>2+</sup> ] - + _F_ 380 _B_ _I_ 380 _B_ = _F_ 380 _B T_ 380 _PB,_ (7) where _FλB_ is the autofluorescence intensity per pixel per time unit at wavelength _λ_, _KF ura_ is the Fura dissociation constant (a calibrated parameter measured in _µM_ ), [ _Fura_ ] _total_, is the total (bound plus free) concentration of Fura in the cell (measured in _µM_ ) and _φ_ is an experiment specific parameter (measured in 1 _/µM/s_ ) lumping together the quantum efficiency, the neurite volume, etc (see [2] for details). When a ’3 wavelengths protocol’ is used (as was the case in the companion paper), it is easy to implement a self-consistency check based on these equations as explained in Sec. A. 4.2. Recorded signals adu340, adu340B, adu380 and adu380B As detailed and discussed in [7, 2], the signal adu _λ_ recorded with a CCD chip whose gain is _G_ and whose read-out variance is _σread_ <sup>2</sup> _−out_ <sup>can be modeled as the realization of a Gaussian</sup> random variable ADU _λ_ with parameters: _µADUλ_ = _G Iλ,_ (8) _ADUλ_ <sup>2</sup> <sup>=</sup> <sup>_G µADUλ_</sup> <sup>+</sup> <sup>_G_</sup> <sup>2</sup> <sup>_P_</sup> <sup>_σ_</sup> <sup>2</sup> _σ_ <sup>2</sup> _read_ <sup>2</sup> _−out_ <sup>_,_</sup> (9) with the obvious adaptation when dealing with the BMR signal: _Iλ_ is replaced by _IλB_ and _P_ is replaced by _PB_ . 4.3. Variance estimates for adu340, adu340B, adu380 and adu380B So, to have the variance of _ADUλ_ we need to know _Iλ_ and for that we need to know [ _Ca_ <sup>2+</sup> ] (Eq. 4 and 6) precisely what we want to estimate. But the expected value of _ADUλ_ is _G Iλ_ (Eq. 8), we can therefore use as a first approximation the observed value _aduλ_ of _ADUλ_ as a guess for _G Iλ_, so in Eq. 9 we plug-in _aduλ_ for _G Iλ_, leading to: _ADU_ <sup>2</sup> _λ_ <sup>=</sup> <sup>_G aduλ_</sup> <sup>+</sup> <sup>_G_</sup> <sup>2</sup> <sup>_P_</sup> <sup>_σ_</sup> <sup>2</sup> _ADU_ <sup>2</sup> _λ_ <sup>_._</sup> (10) _σ_ ˆ <sup>2</sup> _read_ <sup>2</sup> _−out_ <sup>_≈_</sup> <sup>_σ_</sup> <sup>2</sup> In other words, we will use the observed _aduλ_ as if it were the actual fluorescence intensity times the CCD chip gain, _ADUλ_ = _G Iλ_, in order to estimate the variance. In doing so we 5 will sometime slightly underestimate the actual variance (when the observed _aduλ_ turns out to be smaller than _ADUλ_ ) and sometime slightly overestimate it (when the observed _aduλ_ turns out to be larger than _ADUλ_ ). Since we are going to combine many such approximations, we expect–and we will substantiate this claim in Sec. 5–that overall the under-estimations will be compensated for by the over-estimations. 4.4. Variance estimate for _Ca_ <sup>�</sup> Now that we have a _σ_ ˆ <sup>2</sup> Now that we have a _σ_ ˆ _ADU_ <sup>2</sup> _λ_ <sup>we can work with–that is, an estimate from the data alone–, we</sup> want to get _σ_ ˆ _r_ <sup>2</sup> <sup>(Eq.</sup> <sup>2)</sup> <sup>and</sup> <sup>_σ_</sup> <sup>ˆ</sup> _Ca_ <sup>2</sup> - <sup>.</sup> <sup>We</sup> <sup>can</sup> <sup>either</sup> <sup>use</sup> <sup>the</sup> <sup>propagation</sup> <sup>[of](https://en.wikipedia.org/wiki/Propagation_of_uncertainty)</sup> <sup>uncertainty</sup> <sup>(also</sup> referred to as _error_ _propagation_, _compounding_ _of_ _errors_ or _delta_ _method_ ) [6, 8] together with Eq. 2 and 3, or a ’quick’ Monte Carlo approach. We drop any explicit time index in the sequel in order to keep the equations more readable, but it should be clear that such variance estimates have to be obtained for each sampled point. _r_ <sup>2</sup> <sup>(Eq.</sup> <sup>2)</sup> <sup>and</sup> <sup>_σ_</sup> <sup>ˆ2</sup> 4.4.1. Propagation of uncertainty This method requires, in the general case, an assumption of ’small enough’ standard error since it is based on a first order Taylor expansion (see Sec. B for details). It leads first to the following expression for the variance, _σ_ ˆ _f_ <sup>2</sup> _λ_ <sup>,</sup> <sup>of</sup> <sup>_fλ_</sup> <sup>in</sup> <sup>Eq.</sup> <sup>1:</sup> _._ (11) <sup>2</sup> _fλ_ <sup>_≈_</sup> <sup>1</sup> _T_ <sup>2</sup> - _σ_ ˆ <sup>2</sup> _σ_ ˆ <sup>2</sup> _f_ _T_ <sup>2</sup> _λ_ _<u>ADUλ</u>_ _σ_ ˆ <sup>2</sup> _<u>ADUλB</u>_ _P_ <sup>2</sup> _B_ _<u>ADUλ</u>_ + _P_ <sup>2</sup> _λ_ The variance _σ_ ˆ _r_ <sup>2</sup> <sup>of</sup> <sup>_r_</sup> <sup>in</sup> <sup>Eq.</sup> <sup>2</sup> <sup>is</sup> <sup>then:</sup> 1 _r_ <sup>2</sup> <sup>_≈_</sup> _f_ <sup>2</sup> _σ_ ˆ _r_ <sup>2</sup> (ˆ _σf_ <sup>2</sup> 380 <sup>2</sup> _f_ <sup>2</sup> 340 <sup>+</sup> <sup>_r_</sup> <sup>2 ˆ</sup> <sup>_σ_</sup> _f_ <sup>2</sup> _f_ <sup>2</sup> 380 <sup>)</sup> (12) and the variance _σ_ ˆ _Ca_ <sup>2</sup> - <sup>of</sup> _Ca_ <sup>�</sup> in Eq. 3 is: �2 (1 + _Ca_ <sup>�</sup> ) <sup>2</sup> _σ_ ˆ _r_ <sup>2</sup> <sup>_._</sup> (13) _σ_ ˆ _Ca_ <sup>2</sup> - <sup>_≈_</sup> - _Kef f_ _Rmax_ _−_ _r_ 4.4.2. Monte-Carlo method Here we draw, _k_ quadruple of vectors - _adu_ 340 <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <sup>_, adu_</sup> 340 <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _B_ <sup>_, adu_</sup> 380 <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <sup>_, adu_</sup> 380 <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _B_ - _,_ _j_ = 1 _, . . ., k,_ from four independent Gaussian distributions of the general form: _aduλ_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _λ_ <sup>=</sup> <sup>_aduλ_</sup> <sup>+</sup> <sup>_z_</sup> _λ_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _λ_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <sup>_σ_</sup> <sup>ˆ</sup> <sup>_ADU_</sup> _λ_ <sup>_,_</sup> (14) 6 where _aduλ_ is the observed value and _zλ_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <sup>is</sup> <sup>drawn</sup> <sup>from</sup> <sup>a</sup> <sup>standard</sup> <sup>normal</sup> <sup>distribution.</sup> We then plug-in these quadruples into Eq. 1 leading to _k_ couples: <u>340</u> _<u>B</u>_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> PB _,_ _,_ _j_ = 1 _, . . ., k ._ 1 _f_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> 340 <sup>=</sup> T340 - _adu_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <u>380</u> _<u>B</u>_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> PB 1 _f_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> 380 <sup>=</sup> T380 - _adu_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <u>340</u> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <u>340</u> _−_ <sup>_adu_</sup> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> P PB <u>380</u> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <u>380</u> _−_ <sup>_adu_</sup> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> P PB These _k_ couples are ’plugged-in Eq. 2’ leading to _k_ _r_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> : <u>340</u> _r_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> = <sup>_f_</sup> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <u>340</u> <sup>_f_</sup> <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _f_ 380 <sup>[</sup> <sup>_j_</sup> <sup>]</sup> <u>340</u> _j_ = 1 _, . . ., k,_ 380 <sup>[</sup> <sup>_j_</sup> <sup>]</sup> before plugging in the latter into Eq. 3 to get _k_ _Ca_ <sup>�</sup> [ _j_ ]: _r_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _<u>−</u>_ _Rmin_ _j_ = 1 _, . . ., k ._ _Rmax_ _−_ _r_ <sup>[</sup> <sup>_j_</sup> <sup>]</sup> _Ca_ [ _j_ ] = _Kef f_ The empirical variance of these simulated observations will be our _σ_ ˆ _Ca_ <sup>2</sup> - <sup>:</sup> _k_ _Ca_ _j_ =1 1 _σ_ ˆ _Ca_ <sup>2</sup> - <sup>=</sup> _k_ _−_ 1 _k_ _j_ =1 ( _Ca_ <sup>�</sup> [ _j_ ] _−_ _Ca_ - _•_ ) <sup>2</sup> _,_ where _Ca_ - _•_ = <sup>1</sup> _k_ [ _j_ ] _._ (15) Since the Monte-Carlo method requires milder assumptions (the variances do not have to be small) and is easy to adapt, we tend to favor it, but both methods are working. 4.5. Comment The present approach based on a _σ_ ˆ _Ca_ <sup>2</sup> - <sup>estimation</sup> <sup>is</sup> <sup>slightly</sup> <sup>less</sup> <sup>rigorous</sup> <sup>than</sup> <sup>the</sup> <sup>’direct</sup> approach’ of [2] but it is far more flexible since it does not require an independent estimation / measurement of [ _Fura_ ] _total_ . In the companion paper we also chose to consider the calibrated parameters _Kef f_, _Rmin_ and _Rmax_ as known, while only an estimation (necessarily imprecise since the calibration procedure is subject to errors) is known. But the same batch of Fura was used for all experiments that should then all exhibit the same (systematic) error. Since in the companion paper, we are not trying to get the exact standard error of the calcium dynamics parameters but to show difference between two protocols (’classical whole-cell’ versus beta-escin perforated whole-cell), ignoring the uncertainty on the calibrated parameters makes our estimates less variable and helps making the difference, if it exists, clearer. For a true calcium buffering capacity study, the errors on the calibrated parameters should be accounted for and it would be straightforward to do it with our approach, simply by working out the necessary derivatives if one works with the propagation of uncertainty method, or by drawing also _Kef f_, _Rmin_ and _Rmax_ values from Gaussian distributions centered on their respective estimates with a SD given by the standard errors if one works with the Monte-Carlo approach. 7 ## 5. Empirical validation 5.1. Rational Equations 4, 5, 6, 7, together with Eq. 8 and 9 can be viewed as a data generation model. This means that if we choose model parameters values as well as an arbitrary [Ca <sup>2+</sup> ] time course, we can simulate measurements ( `adu` ) at both wavelengths in the ROI as well as in the BMR. We can then use these simulated `adu` exactly as we used the actual data, namely get _r_ ( _ti_ ) (Eq. 2) and _Ca_ <sup>�</sup> ( _ti_ ) (Eq. 3) as well as the (squared) standard errors _σ_ ˆ _Ca_ <sup>2</sup> - <sup>(</sup> <sup>_ti_</sup> <sup>) (Sec.</sup> get _r_ ( _ti_ ) (Eq. 2) and _Ca_ <sup>�</sup> ( _ti_ ) (Eq. 3) as well as the (squared) standard errors _σ_ ˆ _Ca_ <sup>2</sup> - <sup>(</sup> <sup>_ti_</sup> <sup>) (Sec.</sup> 4.4). distributionNow if theof _σ_ ˆthe _Ca_ <sup>2</sup> - <sup>(</sup> _normalized_ <sup>_ti_</sup> <sup>)</sup> <sup>are</sup> <sup>good</sup> _residuals_ <sup>approximations</sup> : <sup>for</sup> <sup>the</sup> <sup>actual</sup> <sup>but</sup> <sup>unknown</sup> <sup>_σ_</sup> _Ca_ <sup>2</sup> <sup>(</sup> <sup>_ti_</sup> <sup>),</sup> <sup>the</sup> _Ca_ <sup>2</sup> - <sup>(</sup> <sup>_ti_</sup> <sup>)</sup> <sup>are</sup> <sup>good</sup> <sup>approximations</sup> <sup>for</sup> <sup>the</sup> <sup>actual</sup> <sup>but</sup> <sup>unknown</sup> <sup>_σ_</sup> <sup>2</sup> _Ca_ <u>�</u> ( _ti_ ) _<u>−</u>_ _Ca_ ( _ti_ ) _,_ _σ_ ˆ _Ca_ - <sup>(</sup> <sup>_ti_</sup> <sup>)</sup> should be very close to a standard normal distribution. _This_ _is_ _precisely_ _what_ _we_ _are_ _going_ _to_ _check_ . 5.2. Simulated data We are going to use the first transient of dataset `DA` ~~`1`~~ `21219` `E1` of the companion paper. The ’static’ parameters–that is the parameters not link to the calcium dynamics–used for the simulation are the actual experimental parameters rounded to the third decimal (Table 1). <u>Parameter</u> <u>Value</u> _Rmin_ 0.147 _Rmax_ 1.599 _Kef f_ 1.093 ( _µM_ ) _KF ura_ 0.225 ( _µM_ ) [ _Fura_ ] _total_ _φ_ 1.89e+05 ( _s_ <sup>_−_</sup> <sup>1</sup> ) T340 0.01 (s) T380 0.003 (s) P 3 P _B_ 448 G 0.146 _σ_ <sup>2</sup> 268.96 _read−out_ _F_ 340 _B_ 189512 ( _s_ <sup>_−_</sup> <sup>1</sup> ) _<u>F</u>_ <u>380</u> _<u>B</u>_ <u>711589</u> <u>(</u> _<u>s</u>_ <sup>_−_</sup> <sup>1</sup> <u>)</u> Table 1: ’Static’ parameters used for the simulation. 8 The simulated calcium dynamics is a monoexponential decay mimicking the tail of the transient: _Ca_ ( _t_ ) = _Ca_ 0 + - 0 if _t_ _< t_ 0 _δ_ exp( _−_ ( _t −_ _t_ 0) _/τ_ ) if _t_ _≥_ _t_ 0 and the parameter values (Table 2) are just a rounded version of the fitting procedure output (see companion paper). <u>Parameter</u> <u>Value</u> _t_ 0 2283.415 (s) _Ca_ 0 0.059 ( _µM_ ) _δ_ 0.114 ( _µM_ ) _<u>τ</u>_ <u>2.339</u> <u>(s)</u> Table 2: Calcium dynamics parameters used for the simulation. Time 0 is when seal is obtained. The simulated data obtained in that way are shown on Fig. 2 (blue traces) together with the actual data (red curves) they are supposed to mimic. At a qualitative level at least, our data generation model is able to produce realistic looking simulations. Figure 2: Observed (red) and simulated (blue) ADU at 340 (left) and 380 nm (right) for the first transient (only the late phase of the transient was simulated). 9 5.3. Software and simulation details The methodological details of the measurements to which the analysis presented in the present manuscript was applied are described in the companion paper. The simulations, computations and figures of the present manuscript were done with `Python` `3` ( `[https://www.python.org/](https://www.python.org/)` ), `numpy` ( `[https://numpy.org/](https://numpy.org/)` ), `scipy` and `matplotlib` ( `[https://matplotlib.org/](https://matplotlib.org/)` ). The `Python` codes and the data required to reproduce the simulations and figures presented in this manuscript can be downloaded from `GitLab` ( `[https://gitlab.com/c˙pouzat/getting-se-on-ratiometric-ca-estimator](https://gitlab.com/c_pouzat/getting-se-on-ratiometric-ca-estimator)` ). The use of `scipy` was kept to a bar minimum to maximize code lifeduration ( `scipy` tends to evolve too fast with minimal concern for backward compatibility). The random number generators used were therefore the ones of `numpy` : the uniform random number generator derives from the `Permuted` `Congruential` `Generator` `(64-bit,` `PCG64)` ( `[https:](https://www.pcg-random.org/)` `[//www.pcg-random.org/](https://www.pcg-random.org/)` ) [5] while the normal random number generator is an adaptation of the Ziggurat method [3] of `Julia` ( `[https://docs.julialang.org/en/v1/](https://docs.julialang.org/en/v1/)` ); unfortunately one has to check the source code of both `numpy` and `Julia` to find that out. 5.4. Are the standard errors of ratiometric estimator accurate? Since the two _σ_ ˆ _Ca_ <sup>2</sup> - <sup>estimation methods, propagation of uncertainty and Monte-Carlo, agree</sup> at each time point within 2%, we illustrate in this section the results obtained with the Monte-Carlo method. We take next the simulated data (blue curves on Fig. 2) together with the simulated background signals (not shown) as if they were actual data and we compute the ratiometric estimator and its standard error as described in Sec. 4.4, using _k_ = 10 <sup>4</sup> replicates. Figure 3 shows the standardized residuals as well as the simulated data together with the true [Ca <sup>2+</sup> ], we know it since we used it to simulate the data! 10 Figure 3: Top: Simulated ratiometric estimator - ’actual’ [Ca <sup>2+</sup> ] divided by ratiometric estimator standard error (if everything goes well we should see draws from a standard normal distribution); bottom: Simulated ratiometric estimator (with error bars given by the standard error) in black and ’actual’ [Ca <sup>2+</sup> ] in red. The upper part of Fig. 3 is only a qualitative way of checking that the normalized residuals follow a standard normal distribution. A quantitative assessment is provided by the Shapiro-Wilk `W` statistic, that is here: `0.987` ; giving a p-value of `0.128` . There is therefore no ground for rejecting the null hypothesis that the normalized residuals are IID draws from a standard normal distribution. As an additional, visual but less powerful test, we plot the empirical cumulative distribution function (ECDF) of the normalized residuals together with the theoretical (normal) one and with Kolmogorov’s [confidence](https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test#Kolmogorov_distribution) bands (Fig. 4). If the empirical ECDF arises from a normally distributed sample with mean 0 and SD 1, it should be _completely_ contained in the 95% [confidence](https://en.wikipedia.org/wiki/Confidence_and_prediction_bands) band 95% of the time and in the 99% band, 99% of the time (these are _confidence_ _bands_ not collections of pointwise confidence intervals). 11 Figure 4: Empirical cumulative distribution function (ECDF) of the normalized residuals (red) together with 95% (grey) and 99% (blue) Kolomogorov confidence bands. We conclude from these visual representations and formal tests that our normalized residuals follow the expected standard normal distribution, implying that our proposed method for getting the standard errors of the ratiometric estimator is fundamentally correct. ## 6. Discussion We have presented a new and simple method for getting standard errors on calcium concentration estimates from ratiometric measurements. This method does not require any more data than what experimentalists using ratiometric dyes like Fura-2 are usually collecting: measurements at 340 and 380 nm both within a region of interest and within a background measurement region. Once the errors bars have been obtained, arbitrary models can be fitted to the calcium transients–by weighted nonlinear least-squares [4]–and meaningful confidence intervals for the parameters of these models will follow as illustrated in the companion paper. The present contribution is therefore best viewed a major simplification of the ’direct approach’ of [2]. In contrast to the latter, the new method does not require a ’3 wavelengths protocol’, it does not require either a precise fit of the autofluorescence dynamics at the three wavelengths and is therefore much easier to implement. Such a 3 wavelengths protocol can nevertheless be useful since it allows experimentalists to perform self-consistency checks and to detect potentially wrong calibration parameter (Sec. A). We 12 provide moreover two independent implementations, one in `C` and one in `Python`, they are open source and freely available. The rather verbose `Python` implementation of the heart of the method (Sec. 4.4) requires 25 lines of code and nothing beyond basic `numpy` functions. We are therefore confident that this method could help experimental physiologists getting much more quantitative results at a very modest extra cost. ## References [1] G Grynkiewicz, M Poenie, and RY Tsien. “A new generation of Ca2+ indicators with greatly improved fluorescence properties”. In: _J. Biol. Chem._ 260.6 (1985), pp. 3440– 3450. URL: `[http://www.jbc.org/cgi/content/abstract/260/6/3440](http://www.jbc.org/cgi/content/abstract/260/6/3440)` . [2] S´ebastien Joucla et al. “Quantitative Estimation of Calcium Dynamics From Ratiometric Measurements: A Direct, Nonratioing Method”. In: _Journal of Neurophysiology_ 103.2 (Feb. 2010), pp. 1130–1144. URL: `[http://dx.doi.org/10.1152/jn.00414.](http://dx.doi.org/10.1152/jn.00414.2009)` `[2009](http://dx.doi.org/10.1152/jn.00414.2009)` . [3] George Marsaglia and Wai Wan Tsang. “The Ziggurat Method for Generating Random Variables”. In: _Journal_ _of_ _Statistical_ _Software_ 5.8 (2000). URL: `[http://dx.doi.](http://dx.doi.org/10.18637/jss.v005.i08)` `[org/10.18637/jss.v005.i08](http://dx.doi.org/10.18637/jss.v005.i08)` . [4] H. B. Nielsen and K. Madsen. _Introduction to Optimization and Data Fitting_ . Richard Petersens Plads, Building 321, DK-2800 Kgs. Lyngby: Informatics and Mathematical Modelling, Technical University of Denmark, DTU, Aug. 2010, p. 176. URL: `[http:](http://www2.compute.dtu.dk/pubdb/pubs/5938-full.html)` `[//www2.compute.dtu.dk/pubdb/pubs/5938-full.html](http://www2.compute.dtu.dk/pubdb/pubs/5938-full.html)` . [5] Melissa E. O’Neill. _PCG:_ _A_ _Family_ _of_ _Simple_ _Fast_ _Space-Efficient_ _Statistically_ _Good_ _Algorithms_ _for_ _Random_ _Number_ _Generation_ . Tech. rep. HMC-CS-2014-0905. Claremont, CA: Harvey Mudd College, Sept. 2014. [6] John Rice. _Mathematical_ _Statistics_ _and_ _Data_ _Analysis_ . third. Duxbury, 2007. [7] L.J. van Vliet et al. “Digital Image Analysis of Microbes; Imaging, Morphometry, Fluorometry and Motility Techniques and Applications, Modern Microbiological Methods”. In: ed. by M.H.F. Wilkinson and F. Schut. John Wiley & Sons, Chichester, 1998. Chap. Image Detectors for Digital Image Microscopy, pp. 37–64. eprint: `[http:](http://www.ph.tn.tudelft.nl/People/lucas/publications/1998/WaS98LVFBea/WaS98LVFBea.pdf)` ``` //www.ph.tn.tudelft.nl/People/lucas/publications/1998/WaS98LVFBea/ ``` `[WaS98LVFBea.pdf](http://www.ph.tn.tudelft.nl/People/lucas/publications/1998/WaS98LVFBea/WaS98LVFBea.pdf)` . URL: `[http://homepage.tudelft.nl/e3q6n/publications/](http://homepage.tudelft.nl/e3q6n/publications/papersLJvV.html)` `[papersLJvV.html](http://homepage.tudelft.nl/e3q6n/publications/papersLJvV.html)` . [8] E. Bright Wilson. _An_ _Introduction_ _to_ _Scientific_ _Research_ . Dover Publications, 2012. ## A. A Self-consistency check A.1. Plug-in _aduλ_ estimates If we have data where a ’3 wavelengths protocol’ was implemented (that is, flashes at 340, 360 and 380 nm at each time point were made), we can use a self consistency check of 13 the data generation model defined by Eq. 4, 6, 2 and 3. From the 6 measureed sequences: - _{adu_ 340( _t_ 1) _, . . ., adu_ 340( _tn_ ) _}_, - _{adu_ 340 _B_ ( _t_ 1) _, . . ., adu_ 340 _B_ ( _tn_ ) _}_, - _{adu_ 360( _t_ 1) _, . . ., adu_ 360( _tn_ ) _}_, - _{adu_ 360 _B_ ( _t_ 1) _, . . ., adu_ 360 _B_ ( _tn_ ) _}_, - _{adu_ 380( _t_ 1) _, . . ., adu_ 380( _tn_ ) _}_, - _{adu_ 380 _B_ ( _t_ 1) _, . . ., adu_ 380 _B_ ( _tn_ ) _}_, we compute the sequence of ratiometric calcium estimates _{_ Ca( <sup>�</sup> _t_ 1) _, . . .,_ Ca( <sup>�</sup> _tn_ ) _}_ . If we also have a way of getting _φ_ <sup>˜</sup> such that: _φ_ ˜ _I_ ˜360 _≈_ [ _Fura_ ] _total_ _φ,_ where _,_ 1 _I_ ˜360 = _G T_ 360 - _adu_ 360 _−_ <sup>_adu_</sup> <sup>360</sup> <sup>_B_</sup> _P_ _PB_ _I_ ˜360 is as estimate of the fluorescence intensity per pixel, per time unit due to Fura (we discuss in the next subsection how to obtain _φ_ <sup>˜</sup> ), we will get: - _{adu_ <sup>�</sup> 340( _t_ 1) = _G_ _I_ <sup>˜</sup> 340( _t_ 1) _, . . .,_ _adu_ <sup>�</sup> 340( _tn_ ) = _G_ _I_ <sup>˜</sup> 340( _tn_ ) _}_, - _{adu_ <sup>�</sup> 380( _t_ 1) = _G_ _I_ <sup>˜</sup> 380( _t_ 1) _, . . .,_ _adu_ <sup>�</sup> 380( _tn_ ) = _G_ _I_ <sup>˜</sup> 380( _tn_ ) _}_ where _I_ <sup>˜</sup> 340 and _I_ <sup>˜</sup> 380 are ’plug-in’ estimates of _I_ 340 and _I_ 380 obtained from Eq. 4 and 6 by plugging in Ca: <sup>�</sup> _T_ 340 _P_ _,_ - + _F_ <sup>ˆ</sup> 340 _B_ ( _ti_ ) _I_ ˜340( _ti_ ) = _I_ ˜380( _ti_ ) = - _φ_ ˜ _I_ ˜360( _ti_ ) _KF ura_ + Ca( <sup>�</sup> _ti_ ) - _φ_ ˜ _I_ ˜360( _ti_ ) _KF ura_ + Ca( <sup>�</sup> _ti_ ) _Rmin Kef f_ + _Rmax_ Ca( <sup>�</sup> _ti_ ) _Kef f_ + Ca( <sup>�</sup> _ti_ ) - + _F_ <sup>ˆ</sup> 380 _B_ ( _ti_ ) _T_ 380 _P_ _,_ with _F_ ˆ _λB_ ( _ti_ ) = <sup>_aduλB_</sup> <sup>(</sup> <sup>_ti_</sup> <sup>)</sup> _G PB Tλ_ _._ The _{_ ( _adu_ <sup>�</sup> 340( _ti_ ) _,_ _adu_ <sup>�</sup> 380( _ti_ )) _}i_ =1 _,...,n_ should then be comparable to the original _{_ ( _adu_ 340( _ti_ ) _, adu_ 380( _ti_ )) _}i_ =1 _,...,n_ . We have here a self-consistency criterion, not a test since we are using the measured _aduλ_ ( _ti_ ) (via Ca( <sup>�</sup> _ti_ )) to get _aduλ_ <sup>�</sup> ( _ti_ ). 14 A.2. Estimating _φ_ <sup>˜</sup> We introduce: _adu_ 380( _ti_ ) _−_ _adu_ <sup>�</sup> 380( _ti_ ) �2 + �2 _RSS_ ( _φ_ ) = _n_ _i_ =1 _adu_ 340( _ti_ ) _−_ _adu_ <sup>�</sup> 340( _ti_ ) and define _φ_ <sup>˜</sup> as the argument minimizing _RSS_ ( _φ_ ). We just need to solve a nonlinear least-square problem. A.3. Illustration As an illustration we compute the plug-in estimators in two situations both based on the first transient of dataset `DA` `121219` `E1` . In the first case we use the calibrated values for _Rmin_ and _Rmax_ (left column on Fig. 5). In the second case we use an _Rmin_ 20% smaller than the calibrated value and an _Rmax_ 20% larger (right column on Fig. 5). Figure 5: Observed (red) and plug-in (blue) ADU at 340 (top) and 380 nm (bottom) for the first transient. On the left, the calibrated parameters were used while on the right an _Rmin_ underestimated by 20% and and _Rmax_ overestimated by 20% were used. We see that the plug-in estimator does indeed provide a self-consistency check (the plug-in estimator values follow closely the observed values on the left side of Fig. 5) and 15 is sensitive to calibrated parameter deviations from their ’true’ values (the peak / valleys ’plug-in’ deviate from the observed values on the right side of Fig. 5). ## B. Propagation of uncertainty We outline in this section how to reach Eq. 11, 12 and 13 of Sec. 4.4.1. We first need to remember that is _X_ and _Y_ are two _independent_ random variables with mean E _X_ = _µX_ and E _Y_ = _µY_ and variance V _X_ = _σX_ <sup>2</sup> <sup>and</sup> <sup>V</sup> <sup>_Y_</sup> <sup>=</sup> <sup>_σ_</sup> _Y_ <sup>2</sup> <sup>,</sup> <sup>then</sup> <sup>if</sup> <sup>_Z_</sup> <sup>=</sup> <sup>_a_</sup> <sup>+</sup> <sup>_bX_</sup> <sup>+</sup> <sup>_cY_</sup> <sup>(</sup> <sup>_a, b, c_</sup> <sup>_∈_</sup> <sup>R)</sup> <sup>we</sup> _X_ <sup>2</sup> <sup>and</sup> <sup>V</sup> <sup>_Y_</sup> <sup>=</sup> <sup>_σ_</sup> _Y_ <sup>2</sup> E _Y_ = _µY_ and variance V _X_ = _σX_ <sup>2</sup> <sup>and</sup> <sup>V</sup> <sup>_Y_</sup> <sup>=</sup> <sup>_σ_</sup> _Y_ <sup>2</sup> <sup>,</sup> <sup>then</sup> <sup>if</sup> <sup>_Z_</sup> <sup>=</sup> <sup>_a_</sup> <sup>+</sup> <sup>_bX_</sup> <sup>+</sup> <sup>_cY_</sup> <sup>(</sup> <sup>_a, b, c_</sup> <sup>_∈_</sup> <sup>R)</sup> <sup>we</sup> have: E _Z_ = _a_ + _b µX_ + _c µY_ _,_ V _Z_ = _b_ <sup>2</sup> _σX_ <sup>2</sup> _X_ <sup>2</sup> <sup>+</sup> <sup>_c_</sup> <sup>2</sup> <sup>_σ_</sup> _Y_ <sup>2</sup> _Y_ <sup>2</sup> <sup>_._</sup> Eq. 11 is a direct consequence of the last equality. If _X_ is (approximately) normally distributed with ( _X_ _∼N_ ( _µX, σX_ <sup>2</sup> <sup>))</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>_Y_</sup> <sup>,</sup> <sup>we</sup> <sup>can</sup> <sup>write:</sup> <sup>_X_</sup> <sup>_≈_</sup> <sup>_µX_</sup> <sup>+</sup> <sup>_Z_</sup> <sup>1</sup> <sup>_σX_</sup> <sup>and</sup> _Y_ _≈_ _µY_ + _Z_ 2 _σY_, where _Z_ 1 and _Z_ 2 are independent and follow a standard normal distribution, _N_ (0 _,_ 1). If now _Z_ = _f_ ( _X, Y_ ) and the partial derivatives of _f_ at ( _µX, µY_ ) exist then: _Z_ = _f_ ( _µX_ + _Z_ 1 _σX, µY_ + _Z_ 2 _σY_ ) _∂f_ ( _µX, µY_ ) _._ _∂Y_ _≈_ _f_ ( _µX, µY_ ) + _Z_ 1 _σX_ _∂f_ ( _µX, µY_ ) + _Z_ 2 _σY_ _∂X_ This is just a first order Taylor expansion and that is where the ’small enough standard error’ assumption is necessary. _Z_ is then (approximately) a linear combination of two independent standard normal random variables and we immediately get: E _Z_ = _f_ ( _µX, µY_ ) _,_ - _∂f_ ( _µX, µY_ ) _∂Y_ �2 _σX_ <sup>2</sup> <sup>+</sup> �2 _σY_ <sup>2</sup> <sup>_._</sup> V _Z_ = - _∂f_ ( _µX, µY_ ) _∂X_ Eq. 12 follows directly by computing the necessary partial derivatives, while Eq. 13 requires the computation of a single derivative. ## C. Auto-fluorescence dynamics C.1. General features The evolution of the _aduλB_ is shown on Fig. 6. We see that the autofluorescence runs down when high frequency flashes are applied during the 3 transients, with a partial recovery between transients. 16 Figure 6: Autofluorescence at 3 excitation wavelengths, 340 nm (red), 360 (blue), 380 (brown). Both during low frequency stimaltions (four portions made of dots) and during the transients where a higher frequency stimulation was applied (3 groups with almost vertical lines). C.2. Within transient dynamics The ’direct method’ of [2] requires the knowledge of the autofluorescence value at each time point during a transient at both 340, 360 and 380 nm, since Eq. 4 and 6 are fitted directly to the recorded `adu340` and `adu380` and they depend on the total Fura concentration at transient time that is estimated from the difference of the 360 nm measurements in the ROI and the BMR. We therefore take a closer look a the autfluorescence dyanmics during the first transient (Fig. 7). 17 Figure 7: Normalized autofluorescence at 3 excitation wavelengths, 340 nm (red), 360 nm (blue) and 380 (brown) during the first transient. At each wavelength, the normalization is performed by dividing each value by the maximal one. At that stage we can fit a straight line plus a cosine function whose period is the duration of a transient. That’s a good way to capture the main structure in the transient, but is still does not account for the full signal variability (Fig. 8). As can be seen from the normalized residuals–the residuals divided by the standard deviation–that should be very nearly independent random draws from a standard normal distribution if the model is correct, there are finer structures left (like the double valley on the 380 nm residuals) meaning that those fits won’t pass formal goodness of fit tests. Indeed if we apply Pearson’s _χ_ <sup>2</sup> tests to these stabilized residuals we get: - at 340 nm a residual sum of squares (RSS) `326`, leading to a P( _χ_ <sup>2</sup> 197 <sup>_>_</sup> <sup>326) =</sup> <sup>`0.0`</sup> <sup>,</sup> - at 360 nm a RSS of `288`, leading to a P( _χ_ <sup>2</sup> 197 <sup>_>_</sup> <sup>288) =</sup> <sup>`2.6e-05`</sup> <sup>,</sup> - at 380 nm a RSS of `275`, leading to a P( _χ_ <sup>2</sup> 197 <sup>_>_</sup> <sup>275) =</sup> <sup>`0.000203`</sup> <sup>.</sup> 18 Figure 8: Bottom: Autofluorescence (red) at 340 nm (left), 360 nm (middle) and 380 nm (right) together with a straight <u>line</u> <u>plus</u> <u>cosine</u> <u>function</u> fit (blue). Top, the normalized residuals: (adu _−_ fit) _/_ We are then left with three possibilities: - _G_ fit + _PB G_ <sup>2</sup> _σread_ <sup>2</sup> _−out_ <sup>.</sup> 1. try to refine the ’straight line plus cosine function’ empirical model in order to get acceptable fits, 2. try to get a better understanding of the autofluorescence dynamics, 3. find another way to get error bars on our estimates. Since we wanted to propose an ’as general and easy as possible’ method we chose the third approach in the present manuscript. 19 ## D. Summary figure 20

섹션 본문 103문단 · 39,954자

(제목 없음)

1a b s t r a c tThe ratiometric fluorescent calcium indicator Fura-2 plays a fundamental role in the investigation of cellular calcium dynamics. Despite of its widespread use in the last 30 years, only one publication (Joucla et al., 2010)) proposed a way of obtaining confidence intervals on fitted calcium dynamic model parameters from single 'calcium transients'. Shortcomings of this approach are its requirement for a '3 wavelengths' protocol (excitation at 340 and 380 nm as usual plus at 360 nm, the isosbestic point) as well as the need for an autofluorence / background fluorescence model at each wavelength. Here, we propose a simpler method that eliminates both shortcommings:1. a precise estimation of the standard errors of the raw data is obtained first, 2. the standard error of the ratiometric calcium estimator (a function of the raw data values) is derived using both the propagation of uncertainty and a Monte-Carlo method.Once meaningful standard errors for calcium estimates are available, standard errors on fitted model parameters follow directly from the use of nonlinear least-squares optimization algorithms.a r t i c l e i n f o Method name: Simple and quick standard error on the ratiometric calcium estimator

Specifications

2Python codes, data and all the information required to reproduce the manuscript results can be found on GitLab: https://gitlab.com/c _ pouzat/gettingse-on-ratiometric-ca-estimator

Rational

3Since its introduction by Grynkiewicz et al. [2] , the ratiometric indicator Fura-2 has led to a revolution in our understanding of the role of calcium ions (Ca 2+ ) in neuronal and cellular function. This indicator provides a straightforward estimation of the free Ca 2+ concentration ([Ca 2+ ]) in neurons and cells with a fine spatial and time resolution. The experimentalist must determine a 'region of interest' ( ROI ) within which the [Ca 2+ ] can be assumed to be uniform and is scientifically relevant. Fluorescence must be measured following excitation at two different wavelengths: typically around 340 and 380 nm; and, since cells exhibit autofluorescence or 'background fluorescence' at those wavelengths, the measured fluorescence intensity is made of two sources: the Fura-2 linked fluorescence and the autofluorescence. The measured intensity within the ROI is therefore usually corrected by subtrating from it an estimation of the autofluorescence intensity obtained from simultaneous measurements from a 'background measurement region' ( BMR ); that is, a nearby region where there is no Fura-2. At a given time the experimentalist will therefore collect a fluorescence intensity measurement from the ROI at 340 and 380 nm; we are going to write adu 340 and adu 380 these measurements, where 'adu' stands for 'analog to digital unit' and corresponds to the raw output of the fluorescence measurement device, usually a charge-coupled device ( CCD ); if the experimentalist is careful not to saturate the sensor, the adu count is proportional to the number of photo-electrons present in the pixel, or in the group of pixels when on-chip binning is used, at the end of the exposure period. The experimentalist will also collect intensity measurements from the BMR, measurements that we are going to write adu 340 ,B and adu 380 ,B . If P CCD pixels make the ROI and P B pixels make the BMR and if the illumination time at 340 nm is T 340 , while the illumination time at 380 nm is T 380 (both times are measured in s ), the experimentalist starts by estimating the fluorescence intensity per pixel per time unit following an excitation by a light flash of wavelengths λ ( λ = 340 or 380 nm) as:

4where an assumption of autofluorescence uniformity is implicitly made. The following ratio is then computed:

5This is an important and attractive feature of the method as well as the origin of its name. Since only ratios are subsequently used, geometric factors like the volume of the Fura loaded region under the ROI do not need to be estimated. The estimated [Ca 2+ ] that we will write Ca for short (the ' ' sign is used for marking estimated values) is then obtained, following [2 , Eq. (5) , p. 3447], with:

6where K e f f (measured in μM), R min and R max are calibrated parameters (the last two parameters are ratios and are dimensionless). R min is the ratio ( Eq. (2) ) observed in the absence of calcium, while R max is the ratio observed with a saturating concentration. K e f f is the calcium concentration at which the ratio is half way between R min and R max . If a set of experiments is performed on a given cell type with the same batch of Fura, as in the companion paper [3] , the calibration errors on these three parameters will be the same for each experiment. If different cell types are considered and/or different Fura batches are used, the calibration errors should be taken into account before making comparison of estimated calcium dynamics parameters (see [1] for discussion).

7If we now want to rigorously fit [Ca 2+ ] dynamics models to sequences of Ca , we need to get standard errors , σ Ca , on our estimates. This is where the ratiometric method gets 'more involved', at least if we want standard errors from a single transient as opposed to a mean of many transients. We typically work ( e.g. [1,3] ) in a setting, using the so called 'added buffer approach', where we cannot get more than a single transient in given conditions since Fura is constantly diffusing into the recorded cell modifying thereby the time constant of calcium transients. It is worth pointing out that there is a more general interest in obtaining standard errors from a single transient: getting these fluorescence measurements requires shining UV light on the neurons we are recording from and generates photodamage. Despite the ubiquity of ratiometric measurements in neuroscience and cell physiology, we are aware of a single paper-by some of us [1] -where the 'standard error question' was directly addressed. The method proposed in [1] requires a 3 wavelengths protocol: measurements at 340, 380 and 360 (the isosbestic wavelength) nm; it drops, so to speak, the above advantage of working with a ratiometric estimator since it fits directly the adu 340 and adu 380 data (at the cost of estimating some geometry related parameters) and it requires a model of the autofluorescence dynamics if the latter is not stationnary. It therefore requires a slightly more complicated '3 wavelengths' recording protocol as well as a more involved fitting procedure. The dataset of the companion paper [3] exhibits a clear but reversible autofluorescence rundown that cannot be ignored since autofluorescence accounts for half of the signal in the ROI. Rather that constructing / tailoring the accurate enough autofluorence models required by the 'direct approach' of [1] we looked for an alternative method providing standard errors for the ratiometric estimator.

Fluorescence intensity

8As detailed in [1,2] , the fluorescence intensities giving rise to the adu 340 , adu 340 ,B , adu 380 and adu 380 ,B signals can be written as:

9where F λB is the autofluorescence intensity per pixel per time unit at wavelength λ, K F ura is the Fura dissociation constant (a calibrated parameter measured in μM), [ F ura ] total , is the total (bound plus free) concentration of Fura in the cell (measured in μM) and φ is an experiment specific parameter (measured in 1 /μM/s ) lumping together the quantum efficiency, the neurite volume, etc (see [1] for details).

10Recorded signals adu 340 , adu 340 ,B , adu 380 and adu 380 ,B

11As detailed and discussed in [1,4] , the signal adu λ recorded with a CCD chip whose gain is G and whose read-out variance is σ 2 read−out can be modeled as the realization of a Gaussian random variable ADU λ with parameters:

12with the obvious adaptation when dealing with the BMR signal: I λ is replaced by I λB and P is replaced by P B . Parameters G and σ 2 read−out are CCD chip parameters provided by the manufacturer. Calibration procedures are discussed in [1,4] and a comprehensive example with data and codes can be found in [5] . Our experience is that the values provided by manufacturers are good starting points; the user calibrated read-out noise is sometime slightly larger than the one specified by the manufacturer.

13Variance estimates for adu 340 , adu 340 ,B , adu 380 and adu 380 ,B So, to have the variance of ADU λ we need to know I λ and for that we need to know [ Ca 2+ ] ( Eqs. (4) and (6) ) precisely what we want to estimate. But the expected value of ADU λ is G I λ ( Eq. (8) ), we can therefore use as a first approximation the observed value adu λ of ADU λ as a guess for G I λ , so in Eq. (9) we plug-in adu λ for G I λ , leading to:

14In other words, we will use the observed adu λ as if it were the actual fluorescence intensity times the CCD chip gain, ADU λ = G I λ , in order to estimate the variance. In doing so we will sometime slightly underestimate the actual variance (when the observed adu λ turns out to be smaller than ADU λ ) and sometime slightly overestimate it (when the observed adu λ turns out to be larger than ADU λ ). Since we are going to combine many such approximations, we expect-and we will substantiate this claim in Section 3 -that overall the under-estimations will be compensated for by the over-estimations.

Variance estimate for Ca

15Now that we have a ˆ σ 2 ADU λ we can work with -that is, an estimate from the data alone -, we want to get ˆ σ 2 r ( Eq. (2) ) and ˆ σ 2

Ca

16. We can either use the propagation of uncertainty (also referred to as error propagation, compounding of errors or delta method ) [6,7] together with Eqs. (2) and (3) , or a 'quick' Monte Carlo approach. We drop any explicit time index in the sequel in order to keep the equations more readable, but it should be clear that such variance estimates have to be obtained for each sampled point.

Propagation of uncertainty

17This method requires, in the general case, an assumption of 'small enough' standard error since it is based on a first order Taylor expansion (see Section Appendix A for details). It leads first to the following expression for the variance, ˆ

18The variance ˆ σ 2 r of r in Eq. (2) is then:

19and the variance ˆ A remark on ˆ σ 2

Ca behavior

20The last three Eqs. (11) -(13) can be used together with Eqs. (8) and (9) to understand why ˆ σ 2

21Ca will increase with the calcium concentration and therefore why a weighted nonlinear least-square procedure is required [8][9][10] in order to get proper confidence intervals on calcium dynamics model parameters. Eq. (9) tells us that the variance of the raw signals is an increasing linear function of their means. When the calcium concentration increases, the recorded signal at 340 nm increases while the one at 380 nm decreases ( Fig. 1

Monte-Carlo method

22Here we draw, k quadruple of vectors

23where adu λ is the observed value and z [ j] λ is drawn from a standard normal distribution. We then plug-in these quadruples into Eq. (1) leading to k couples: These k couples are 'plugged-in Eq.

24(2) ' leading to k r [ j] :

25before plugging in the latter into Eq. (3) to get k Ca [ j] :

26The empirical variance of these simulated observations will be our ˆ

27Since the Monte-Carlo method requires milder assumptions (the variances do not have to be small) and is easy to adapt, we tend to favor it; to be on the safe side, users can use both methods and, if they disagree, plot a histogram of the Ca [ j] to make sure that the discrepancy source is the nonnormality of the latter.

Comment

28The present approach based on a ˆ σ 2 Ca estimation is slightly less rigorous than the 'direct approach' of [1] but it is far more flexible since it does not require an independent estimation / measurement of [ F ura ] total . In line with the discussion following Eq. (3) , in the companion paper [3] we chose to consider the calibrated parameters K e f f , R min and R max as fixed.

Rational

29Eqs. (4) - (7) , together with Eqs. (8) and (9) can be viewed as a data generation model. This means that if we choose model parameters values as well as an arbitrary [Ca 2+ ] time course, we can simulate measurements ( adu ) at both wavelengths in the ROI as well as in the BMR. We can then use these

30should be very close to a standard normal distribution. This is precisely what we are going to check .

Simulated data

31We are going to use the first transient of dataset DA_121219_E1 of the companion paper [3] . The 'static' parameters -that is the parameters not link to the calcium dynamics -used for the simulation are the actual experimental parameters rounded to the third decimal ( Table 1 ). The simulated calcium dynamics is a monoexponential decay mimicking the tail of the transient:

32and the parameter values ( Table 2 ) are just a rounded version of the fitting procedure output (see companion paper [3] ). The simulated data obtained in that way are shown on Fig. 1 (blue traces) together with the actual data (red curves) they are supposed to mimic. At a qualitative level at least, our data generation model is able to produce realistic looking simulations.

Software and simulation details

33The methodological details of the measurements to which the analysis presented in the present manuscript was applied are described in the companion paper [3] .

34The simulations, computations and figures of the present manuscript were done with Python 3 ( https://www.python.org/ ), numpy ( https://numpy.org/ ), scipy and matplotlib ( https://matplotlib. org/ ). The Python codes and the data required to reproduce the simulations and figures presented in this manuscript can be downloaded from GitLab ( https://gitlab.com/c _ pouzat/ getting-se-on-ratiometric-ca-estimator ).

35The use of scipy was kept to a bare minimum to maximize code lifeduration ( scipy tends to evolve too fast with minimal concern for backward compatibility). The random number generators used were therefore the ones of numpy : the uniform random number generator derives from the Permuted Congruential Generator (64-bit, PCG64) ( https://www.pcg-random.org/ ) [11] while the normal random number generator is an adaptation of the Ziggurat method [12] of Julia ( https://docs.julialang.org/en/v1/ ); unfortunately one has to check the source code of both numpy and Julia to find that out.

Are the standard errors of ratiometric estimator accurate?

36Since the two ˆ σ 2 Ca estimation methods, propagation of uncertainty and Monte-Carlo, agree at each time point within 2%, we illustrate in this section the results obtained with the Monte-Carlo method.

37We take next the simulated data (blue curves on Fig. 1 ) together with the simulated background signals (not shown) as if they were actual data and we compute the ratiometric estimator and its standard error as described in Section 2.4 , using k = 10 4 replicates. Fig. 2 shows the standardized residuals as well as the simulated data together with the true [Ca 2+ ], we know it since we used it to simulate the data! The upper part of Fig. 2 is only a qualitative way of checking that the normalized residuals follow a standard normal distribution. A quantitative assessment is provided by the Shapiro-Wilk W statistic, that is here: 0.987 ; giving a p-value of 0.128 . There is therefore no ground for rejecting the null hypothesis that the normalized residuals are IID draws from a standard normal distribution. As an additional, visual but less powerful test, we plot the empirical cumulative distribution function (ECDF) of the normalized residuals together with the theoretical (normal) one and with Kolmogorov ' s confidence bands ( Fig. 3 ). If the empirical ECDF arises from a normally distributed sample with mean 0 and SD 1, it should be completely contained in the 95% confidence band 95% of the time and in the 99% band, 99% of the time (these are confidence bands not collections of pointwise confidence intervals).

38We conclude from these visual representations and formal tests that our normalized residuals follow the expected standard normal distribution, implying that our proposed method for getting the standard errors of the ratiometric estimator is fundamentally correct.

Discussion

39We have presented a new and simple method for getting standard errors on calcium concentration estimates from ratiometric measurements. This method does not require any more data than what experimentalists using ratiometric dyes like Fura-2 are usually collecting: measurements at 340 and 380 nm both within a region of interest and within a background measurement region. Once the errors bars have been obtained, arbitrary models can be fitted to the calcium transients -by weighted nonlinear least-squares [10] -and meaningful confidence intervals for the parameters of these models will follow as illustrated in the companion paper [3] . The present contribution is therefore best viewed as a major simplification of the 'direct approach' of [1] . In contrast to the latter, the new method does not require a '3 wavelengths protocol', it does not require either a precise fit of the autofluorescence dynamics at the three wavelengths and is therefore much easier to implement. We provide moreover two independent implementations, one in C and one in Python , they are open source and freely available. The rather verbose Python implementation of the heart of the method ( Section 2.4 ) requires 25 lines of code and nothing beyond basic numpy functions. We are therefore confident that this method could help experimental physiologists getting much more quantitative results at a very modest extra cost.

Co-submission

40This manuscript is a co-submission associated with Analysis of neuronal Ca 2+ handling properties by combining perforated patch clamp recordings and the added buffer approach , DOI: 10.1016/j.ceca.2021. 102411 .

Declaration of Competing Interest

41The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Appendix A Propagation of uncertainty

42We outline in this section how to reach Eqs. (11) -(13) of Section 2.4.1 . We first need to remember that is X and Y are two independent random variables with mean E X = μ X and E Y = μ Y and variance

43Eq. (11) is a direct consequence of the last equality. If X is (approximately) normally distributed with ( X ∼ N (μ X , σ 2 X ) ) as well as Y , we can write: X ≈ μ X + Z 1 σ X and Y ≈ μ Y + Z 2 σ Y , where Z 1 and Z 2 are independent and follow a standard normal distribution, N (0 , 1) . If now Z = f (X, Y ) and the partial derivatives of f at (μ X , μ Y ) exist then:

44This is just a first order Taylor expansion and that is where the 'small enough standard error' assumption is necessary. Z is then (approximately) a linear combination of two independent standard normal random variables and we immediately get:

45Eq. (12) follows directly by computing the necessary partial derivatives, while Eq. (13) requires the computation of a single derivative.

B1 General features

46The evolution of the aduλB is shown on Fig. 4 . We see that the autofluorescence runs down when high frequency flashes are applied during the 3 transients, with a partial recovery between transients.

B2 Within transient dynamics

47The 'direct method' of [1] requires the knowledge of the autofluorescence value at each time point during a transient at both 340, 360 and 380 nm, since Eqs. (4) and (6) are fitted directly to the recorded adu 340 and adu 380 and they depend on the total Fura concentration at transient time that is estimated from the difference of the 360 nm measurements in the ROI and the BMR. We therefore take a closer look a the autofluorescence dynamics during the first transient ( Fig. 5 ).

48At that stage we can fit a straight line plus a cosine function whose period is the duration of a transient. That's a good way to capture the main structure in the transient, but is still does not account for the full signal variability ( Fig. 5 ). As can be seen from the normalized residuals -the residuals divided by the standard deviation -that should be very nearly independent random draws from a standard normal distribution if the model is correct, there are finer structures left (like the double valley on the 380 nm residuals) meaning that those fits won't pass formal goodness of fit tests. Indeed if we apply Pearson's χ 2 tests to these stabilized residuals we get:

49• at 340 nm a residual sum of squares (RSS) 326 , leading to a P (χ 2 197 > 326) = 0.0 , • at 360 nm a RSS of 288 , leading to a P (χ 2 197 > 288) = 2.6e-05 , • at 380 nm a RSS of 275 , leading to a P (χ 2 197 > 275) = 0.000203 .

50We are then left with three possibilities:

511. try to refine the 'straight line plus cosine function' empirical model in order to get acceptable fits, 2. try to get a better understanding of the autofluorescence dynamics, 3. find another way to get error bars on our estimates.

52Since we wanted to propose an 'as general and easy as possible' method we chose the third approach in the present manuscript.

Specifications

53Python codes, data and all the information required to reproduce the manuscript results can be found on GitLab: https://gitlab.com/c _ pouzat/gettingse-on-ratiometric-ca-estimator

Rational

54Since its introduction by Grynkiewicz et al. [2] , the ratiometric indicator Fura-2 has led to a revolution in our understanding of the role of calcium ions (Ca 2+ ) in neuronal and cellular function. This indicator provides a straightforward estimation of the free Ca 2+ concentration ([Ca 2+ ]) in neurons and cells with a fine spatial and time resolution. The experimentalist must determine a 'region of interest' ( ROI ) within which the [Ca 2+ ] can be assumed to be uniform and is scientifically relevant. Fluorescence must be measured following excitation at two different wavelengths: typically around 340 and 380 nm; and, since cells exhibit autofluorescence or 'background fluorescence' at those wavelengths, the measured fluorescence intensity is made of two sources: the Fura-2 linked fluorescence and the autofluorescence. The measured intensity within the ROI is therefore usually corrected by subtrating from it an estimation of the autofluorescence intensity obtained from simultaneous measurements from a 'background measurement region' ( BMR ); that is, a nearby region where there is no Fura-2. At a given time the experimentalist will therefore collect a fluorescence intensity measurement from the ROI at 340 and 380 nm; we are going to write adu 340 and adu 380 these measurements, where 'adu' stands for 'analog to digital unit' and corresponds to the raw output of the fluorescence measurement device, usually a charge-coupled device ( CCD ); if the experimentalist is careful not to saturate the sensor, the adu count is proportional to the number of photo-electrons present in the pixel, or in the group of pixels when on-chip binning is used, at the end of the exposure period. The experimentalist will also collect intensity measurements from the BMR, measurements that we are going to write adu 340 ,B and adu 380 ,B . If P CCD pixels make the ROI and P B pixels make the BMR and if the illumination time at 340 nm is T 340 , while the illumination time at 380 nm is T 380 (both times are measured in s ), the experimentalist starts by estimating the fluorescence intensity per pixel per time unit following an excitation by a light flash of wavelengths λ ( λ = 340 or 380 nm) as:

55where an assumption of autofluorescence uniformity is implicitly made. The following ratio is then computed:

56This is an important and attractive feature of the method as well as the origin of its name. Since only ratios are subsequently used, geometric factors like the volume of the Fura loaded region under the ROI do not need to be estimated. The estimated [Ca 2+ ] that we will write Ca for short (the ' ' sign is used for marking estimated values) is then obtained, following [2 , Eq. (5) , p. 3447], with:

57where K e f f (measured in μM), R min and R max are calibrated parameters (the last two parameters are ratios and are dimensionless). R min is the ratio ( Eq. (2) ) observed in the absence of calcium, while R max is the ratio observed with a saturating concentration. K e f f is the calcium concentration at which the ratio is half way between R min and R max . If a set of experiments is performed on a given cell type with the same batch of Fura, as in the companion paper [3] , the calibration errors on these three parameters will be the same for each experiment. If different cell types are considered and/or different Fura batches are used, the calibration errors should be taken into account before making comparison of estimated calcium dynamics parameters (see [1] for discussion).

58If we now want to rigorously fit [Ca 2+ ] dynamics models to sequences of Ca , we need to get standard errors , σ Ca , on our estimates. This is where the ratiometric method gets 'more involved', at least if we want standard errors from a single transient as opposed to a mean of many transients. We typically work ( e.g. [1,3] ) in a setting, using the so called 'added buffer approach', where we cannot get more than a single transient in given conditions since Fura is constantly diffusing into the recorded cell modifying thereby the time constant of calcium transients. It is worth pointing out that there is a more general interest in obtaining standard errors from a single transient: getting these fluorescence measurements requires shining UV light on the neurons we are recording from and generates photodamage. Despite the ubiquity of ratiometric measurements in neuroscience and cell physiology, we are aware of a single paper-by some of us [1] -where the 'standard error question' was directly addressed. The method proposed in [1] requires a 3 wavelengths protocol: measurements at 340, 380 and 360 (the isosbestic wavelength) nm; it drops, so to speak, the above advantage of working with a ratiometric estimator since it fits directly the adu 340 and adu 380 data (at the cost of estimating some geometry related parameters) and it requires a model of the autofluorescence dynamics if the latter is not stationnary. It therefore requires a slightly more complicated '3 wavelengths' recording protocol as well as a more involved fitting procedure. The dataset of the companion paper [3] exhibits a clear but reversible autofluorescence rundown that cannot be ignored since autofluorescence accounts for half of the signal in the ROI. Rather that constructing / tailoring the accurate enough autofluorence models required by the 'direct approach' of [1] we looked for an alternative method providing standard errors for the ratiometric estimator.

Fluorescence intensity

59As detailed in [1,2] , the fluorescence intensities giving rise to the adu 340 , adu 340 ,B , adu 380 and adu 380 ,B signals can be written as:

60where F λB is the autofluorescence intensity per pixel per time unit at wavelength λ, K F ura is the Fura dissociation constant (a calibrated parameter measured in μM), [ F ura ] total , is the total (bound plus free) concentration of Fura in the cell (measured in μM) and φ is an experiment specific parameter (measured in 1 /μM/s ) lumping together the quantum efficiency, the neurite volume, etc (see [1] for details).

61Recorded signals adu 340 , adu 340 ,B , adu 380 and adu 380 ,B

62As detailed and discussed in [1,4] , the signal adu λ recorded with a CCD chip whose gain is G and whose read-out variance is σ 2 read−out can be modeled as the realization of a Gaussian random variable ADU λ with parameters:

63with the obvious adaptation when dealing with the BMR signal: I λ is replaced by I λB and P is replaced by P B . Parameters G and σ 2 read−out are CCD chip parameters provided by the manufacturer. Calibration procedures are discussed in [1,4] and a comprehensive example with data and codes can be found in [5] . Our experience is that the values provided by manufacturers are good starting points; the user calibrated read-out noise is sometime slightly larger than the one specified by the manufacturer.

64Variance estimates for adu 340 , adu 340 ,B , adu 380 and adu 380 ,B So, to have the variance of ADU λ we need to know I λ and for that we need to know [ Ca 2+ ] ( Eqs. (4) and (6) ) precisely what we want to estimate. But the expected value of ADU λ is G I λ ( Eq. (8) ), we can therefore use as a first approximation the observed value adu λ of ADU λ as a guess for G I λ , so in Eq. (9) we plug-in adu λ for G I λ , leading to:

65In other words, we will use the observed adu λ as if it were the actual fluorescence intensity times the CCD chip gain, ADU λ = G I λ , in order to estimate the variance. In doing so we will sometime slightly underestimate the actual variance (when the observed adu λ turns out to be smaller than ADU λ ) and sometime slightly overestimate it (when the observed adu λ turns out to be larger than ADU λ ). Since we are going to combine many such approximations, we expect-and we will substantiate this claim in Section 3 -that overall the under-estimations will be compensated for by the over-estimations.

Variance estimate for Ca

66Now that we have a ˆ σ 2 ADU λ we can work with -that is, an estimate from the data alone -, we want to get ˆ σ 2 r ( Eq. (2) ) and ˆ σ 2

Ca

67. We can either use the propagation of uncertainty (also referred to as error propagation, compounding of errors or delta method ) [6,7] together with Eqs. (2) and (3) , or a 'quick' Monte Carlo approach. We drop any explicit time index in the sequel in order to keep the equations more readable, but it should be clear that such variance estimates have to be obtained for each sampled point.

Propagation of uncertainty

68This method requires, in the general case, an assumption of 'small enough' standard error since it is based on a first order Taylor expansion (see Section Appendix A for details). It leads first to the following expression for the variance, ˆ

69The variance ˆ σ 2 r of r in Eq. (2) is then:

70and the variance ˆ A remark on ˆ σ 2

Ca behavior

71The last three Eqs. (11) -(13) can be used together with Eqs. (8) and (9) to understand why ˆ σ 2

72Ca will increase with the calcium concentration and therefore why a weighted nonlinear least-square procedure is required [8][9][10] in order to get proper confidence intervals on calcium dynamics model parameters. Eq. (9) tells us that the variance of the raw signals is an increasing linear function of their means. When the calcium concentration increases, the recorded signal at 340 nm increases while the one at 380 nm decreases ( Fig. 1

Monte-Carlo method

73Here we draw, k quadruple of vectors

74where adu λ is the observed value and z [ j] λ is drawn from a standard normal distribution. We then plug-in these quadruples into Eq. (1) leading to k couples: These k couples are 'plugged-in Eq.

75(2) ' leading to k r [ j] :

76before plugging in the latter into Eq. (3) to get k Ca [ j] :

77The empirical variance of these simulated observations will be our ˆ

78Since the Monte-Carlo method requires milder assumptions (the variances do not have to be small) and is easy to adapt, we tend to favor it; to be on the safe side, users can use both methods and, if they disagree, plot a histogram of the Ca [ j] to make sure that the discrepancy source is the nonnormality of the latter.

Comment

79The present approach based on a ˆ σ 2 Ca estimation is slightly less rigorous than the 'direct approach' of [1] but it is far more flexible since it does not require an independent estimation / measurement of [ F ura ] total . In line with the discussion following Eq. (3) , in the companion paper [3] we chose to consider the calibrated parameters K e f f , R min and R max as fixed.

Rational

80Eqs. (4) - (7) , together with Eqs. (8) and (9) can be viewed as a data generation model. This means that if we choose model parameters values as well as an arbitrary [Ca 2+ ] time course, we can simulate measurements ( adu ) at both wavelengths in the ROI as well as in the BMR. We can then use these

81should be very close to a standard normal distribution. This is precisely what we are going to check .

Simulated data

82We are going to use the first transient of dataset DA_121219_E1 of the companion paper [3] . The 'static' parameters -that is the parameters not link to the calcium dynamics -used for the simulation are the actual experimental parameters rounded to the third decimal ( Table 1 ). The simulated calcium dynamics is a monoexponential decay mimicking the tail of the transient:

83and the parameter values ( Table 2 ) are just a rounded version of the fitting procedure output (see companion paper [3] ). The simulated data obtained in that way are shown on Fig. 1 (blue traces) together with the actual data (red curves) they are supposed to mimic. At a qualitative level at least, our data generation model is able to produce realistic looking simulations.

Software and simulation details

84The methodological details of the measurements to which the analysis presented in the present manuscript was applied are described in the companion paper [3] .

85The simulations, computations and figures of the present manuscript were done with Python 3 ( https://www.python.org/ ), numpy ( https://numpy.org/ ), scipy and matplotlib ( https://matplotlib. org/ ). The Python codes and the data required to reproduce the simulations and figures presented in this manuscript can be downloaded from GitLab ( https://gitlab.com/c _ pouzat/ getting-se-on-ratiometric-ca-estimator ).

86The use of scipy was kept to a bare minimum to maximize code lifeduration ( scipy tends to evolve too fast with minimal concern for backward compatibility). The random number generators used were therefore the ones of numpy : the uniform random number generator derives from the Permuted Congruential Generator (64-bit, PCG64) ( https://www.pcg-random.org/ ) [11] while the normal random number generator is an adaptation of the Ziggurat method [12] of Julia ( https://docs.julialang.org/en/v1/ ); unfortunately one has to check the source code of both numpy and Julia to find that out.

Are the standard errors of ratiometric estimator accurate?

87Since the two ˆ σ 2 Ca estimation methods, propagation of uncertainty and Monte-Carlo, agree at each time point within 2%, we illustrate in this section the results obtained with the Monte-Carlo method.

88We take next the simulated data (blue curves on Fig. 1 ) together with the simulated background signals (not shown) as if they were actual data and we compute the ratiometric estimator and its standard error as described in Section 2.4 , using k = 10 4 replicates. Fig. 2 shows the standardized residuals as well as the simulated data together with the true [Ca 2+ ], we know it since we used it to simulate the data! The upper part of Fig. 2 is only a qualitative way of checking that the normalized residuals follow a standard normal distribution. A quantitative assessment is provided by the Shapiro-Wilk W statistic, that is here: 0.987 ; giving a p-value of 0.128 . There is therefore no ground for rejecting the null hypothesis that the normalized residuals are IID draws from a standard normal distribution. As an additional, visual but less powerful test, we plot the empirical cumulative distribution function (ECDF) of the normalized residuals together with the theoretical (normal) one and with Kolmogorov ' s confidence bands ( Fig. 3 ). If the empirical ECDF arises from a normally distributed sample with mean 0 and SD 1, it should be completely contained in the 95% confidence band 95% of the time and in the 99% band, 99% of the time (these are confidence bands not collections of pointwise confidence intervals).

89We conclude from these visual representations and formal tests that our normalized residuals follow the expected standard normal distribution, implying that our proposed method for getting the standard errors of the ratiometric estimator is fundamentally correct.

Discussion

90We have presented a new and simple method for getting standard errors on calcium concentration estimates from ratiometric measurements. This method does not require any more data than what experimentalists using ratiometric dyes like Fura-2 are usually collecting: measurements at 340 and 380 nm both within a region of interest and within a background measurement region. Once the errors bars have been obtained, arbitrary models can be fitted to the calcium transients -by weighted nonlinear least-squares [10] -and meaningful confidence intervals for the parameters of these models will follow as illustrated in the companion paper [3] . The present contribution is therefore best viewed as a major simplification of the 'direct approach' of [1] . In contrast to the latter, the new method does not require a '3 wavelengths protocol', it does not require either a precise fit of the autofluorescence dynamics at the three wavelengths and is therefore much easier to implement. We provide moreover two independent implementations, one in C and one in Python , they are open source and freely available. The rather verbose Python implementation of the heart of the method ( Section 2.4 ) requires 25 lines of code and nothing beyond basic numpy functions. We are therefore confident that this method could help experimental physiologists getting much more quantitative results at a very modest extra cost.

Co-submission

91This manuscript is a co-submission associated with Analysis of neuronal Ca 2+ handling properties by combining perforated patch clamp recordings and the added buffer approach , DOI: 10.1016/j.ceca.2021. 102411 .

Declaration of Competing Interest

92The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Appendix A Propagation of uncertainty

93We outline in this section how to reach Eqs. (11) -(13) of Section 2.4.1 . We first need to remember that is X and Y are two independent random variables with mean E X = μ X and E Y = μ Y and variance

94Eq. (11) is a direct consequence of the last equality. If X is (approximately) normally distributed with ( X ∼ N (μ X , σ 2 X ) ) as well as Y , we can write: X ≈ μ X + Z 1 σ X and Y ≈ μ Y + Z 2 σ Y , where Z 1 and Z 2 are independent and follow a standard normal distribution, N (0 , 1) . If now Z = f (X, Y ) and the partial derivatives of f at (μ X , μ Y ) exist then:

95This is just a first order Taylor expansion and that is where the 'small enough standard error' assumption is necessary. Z is then (approximately) a linear combination of two independent standard normal random variables and we immediately get:

96Eq. (12) follows directly by computing the necessary partial derivatives, while Eq. (13) requires the computation of a single derivative.

B1 General features

97The evolution of the aduλB is shown on Fig. 4 . We see that the autofluorescence runs down when high frequency flashes are applied during the 3 transients, with a partial recovery between transients.

B2 Within transient dynamics

98The 'direct method' of [1] requires the knowledge of the autofluorescence value at each time point during a transient at both 340, 360 and 380 nm, since Eqs. (4) and (6) are fitted directly to the recorded adu 340 and adu 380 and they depend on the total Fura concentration at transient time that is estimated from the difference of the 360 nm measurements in the ROI and the BMR. We therefore take a closer look a the autofluorescence dynamics during the first transient ( Fig. 5 ).

99At that stage we can fit a straight line plus a cosine function whose period is the duration of a transient. That's a good way to capture the main structure in the transient, but is still does not account for the full signal variability ( Fig. 5 ). As can be seen from the normalized residuals -the residuals divided by the standard deviation -that should be very nearly independent random draws from a standard normal distribution if the model is correct, there are finer structures left (like the double valley on the 380 nm residuals) meaning that those fits won't pass formal goodness of fit tests. Indeed if we apply Pearson's χ 2 tests to these stabilized residuals we get:

100• at 340 nm a residual sum of squares (RSS) 326 , leading to a P (χ 2 197 > 326) = 0.0 , • at 360 nm a RSS of 288 , leading to a P (χ 2 197 > 288) = 2.6e-05 , • at 380 nm a RSS of 275 , leading to a P (χ 2 197 > 275) = 0.000203 .

101We are then left with three possibilities:

1021. try to refine the 'straight line plus cosine function' empirical model in order to get acceptable fits, 2. try to get a better understanding of the autofluorescence dynamics, 3. find another way to get error bars on our estimates.

103Since we wanted to propose an 'as general and easy as possible' method we chose the third approach in the present manuscript.

참고문헌 9건

  1. Nonlinear Regression Analysis and Its Applications Wiley series in probability and statistics · Wiley · 1988 10.1002/9780470316757
  2. <i>An Introduction to Scientific Research</i> Physics Today · AIP Publishing · 1954 10.1063/1.3061541
  3. The Ziggurat Method for Generating Random Variables Journal of Statistical Software · Foundation for Open Access Statistics · 2000 10.18637/jss.v005.i08
  4. Mathematical Statistics and Data Analysis Technometrics · Taylor & Francis · 1989 10.2307/3556160
  5. Quantitative Estimation of Calcium Dynamics From Ratiometric Measurements: A Direct, Nonratioing Method Journal of Neurophysiology · American Physiological Society · 2009 10.1152/jn.00414.2009
  6. A new generation of Ca2+ indicators with greatly improved fluorescence properties. Journal of Biological Chemistry · Elsevier BV · 1985 10.1016/s0021-9258(19)83641-4
  7. An introduction to scientific research Journal of the Franklin Institute · Elsevier BV · 1953 10.1016/0016-0032(53)90417-7
  8. Introduction to Optimization and Data Fitting 2008
  9. Analysis of neuronal Ca2+ handling properties by combining perforated patch clamp recordings and the added buffer approach Cell Calcium · Elsevier BV · 2021 10.1016/j.ceca.2021.102411