create_error_df_pLigand_multiple: Creates an error df at multiple inaccuracies, with multiple...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Creates an error df at multiple inaccuracies, with multiple Rmin/Rmax/delta/pKd parameters

Usage

1
2
3
4
5
6
7
8
create_error_df_pLigand_multiple(
  inaccuracies,
  pLigand_min,
  pLigand_max,
  param_df,
  by = 0.01,
  ligand_name
)

Arguments

inaccuracies

A vector of inaccuracies (e.g. 0.02 for 2% error), always relative

pLigand_min

The minimum pH for which to record error

pLigand_max

The maximum pH for which to record error

param_df

A dataframe containing a list of sensor parameters, with these columns: 'name': An identifier for this sensor 'Rmin': the minimum possible ratiometric fluorescence for this sensor 'Rmax': the maximum possible ratiometric fluorescence for this sensor 'delta': the ratiometric fluorescence in the first wavelength for this sensor 'pKd': this sensor's midpoint/pKd

by

(optional, default: 0.01) The granularity of the error table–e.g., by = 0.01 would record 275 and 275.01, etc.

ligand_name

the name of this ligand

Value

A dataframe of errors with columns: 'Name': this sensor name '(ligand_name)': the pLigand 'Rmin': the minimum possible ratiometric fluorescence for this sensor 'Rmax': the maximum possible ratiometric fluorescence for this sensor 'Error': the error in this pLigand 'Inaccuracy': The inaccuracy of the measurements (relative to R).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
create_error_df_pLigand_multiple(
  c(0.01, 0.02), 2, 10,
  data.frame(
    "Rmin" = c(1, 2),
    "Rmax" = c(5, 6),
    "delta" = c(0.2, 1.2),
    "name" = c("normal", "plusOne"),
    "pKd" = c(7, 8)
  ),
  ligand_name = "NADPH"
)

julianstanley/SensorOverlord documentation built on Oct. 19, 2020, 2:29 p.m.