What is the error in pLigand at a given pLigand, given some parameters of R and the error in R?

Error_pLigand(pLigand, Rmin, Rmax, delta, pKd, error_R, ligand_name, ...)

Arguments

pLigand

the pLigand

Rmin

the minimum possible ratiometric fluorescence

Rmax

the maximum possible ratiometric fluorescence

delta

the ratiometric fluorescence in the first wavelength

pKd

the sensor's midpoint/pKd

error_R

a function that, given an R, returns the error in that R

ligand_name

the name of the ligand

...

not used (for generalization compatability)

Value

A list with (1) 'pH', the given pH, (2) 'larger_pH', the largest possible E, at the given error (3) 'smaller_pH', the smallest possible E, at the given error (4) 'max_error' the largest possible difference between the observed and expected E

Examples

Error_pLigand( pLigand = 7.3, ligand_name = "pNADPH", Rmin = 1, Rmax = 5, delta = 0.2, pKd = 8, error_R = function(x) 0.02 * x )
#> $pNADPH #> [1] 7.3 #> #> $larger_pNADPH #> [1] 7.273913 #> #> $smaller_pNADPH #> [1] 7.326085 #> #> $max_error #> [1] 0.02608707 #>