R/apply_fup_adjustment.R

Defines functions apply_fup_adjustment

Documented in apply_fup_adjustment

#' Correct the measured fraction unbound in plasma for lipid binding
#'
#' This function uses the lipid binding correction estimated by Pearce
#' et al. (2017) to decrease the fraction unbound in plasma
#' (\ifelse{html}{\out{f<sub>up</sub>}}{\eqn{f_{up}}}). This correction
#' assumes that there is additional in vivo binding to lipid, which
#' has a greater impact on neutral lipophilic compounds. 
#'
#' @param fup In vitro measured fraction unbound in plasma
#'
#' @param fup.correction Estimated correction to account for additional lipid
#' binding in vivo (Pearce et al., 2017) from \code{\link{calc_fup_correction}}
#'
#' @param Pow The octanal:water equilibrium partition coefficient
#'
#' @param pKa_Donor A string containing hydrogen donor ionization equilibria, 
#' concatenated with commas. Can be "NA" if none exist.
#'
#' @param pKa_Accept A string containing hydrogen acceptance ionization equilibria, 
#' concatenated with commas. Can be "NA" if none exist.
#'
#' @param suppress.messages Whether or not the output message is suppressed.
#' 
#' @param minimum.Funbound.plasma \ifelse{html}{\out{f<sub>up</sub>}}{\eqn{f_{up}}}
#' is not allowed to drop below this value (default is 0.0001).
#'
#' @return Fraction unbound in plasma adjusted to take into account binding
#' in the in vitro assay
#'
#' @author John Wambaugh
#'
#' @references Kilford, Peter J., et al. "Hepatocellular binding of drugs: 
#' correction for unbound fraction in hepatocyte incubations using microsomal 
#' binding or drug lipophilicity data." Drug Metabolism and Disposition 36.7 
#' (2008): 1194-1197.
#'
#' Wetmore, Barbara A., et al. "Incorporating high-throughput exposure 
#' predictions with dosimetry-adjusted in vitro bioactivity to inform chemical 
#' toxicity testing." Toxicological Sciences 148.1 (2015): 121-136.
#'
#' @keywords in-vitro
#'
#' @seealso \code{\link{calc_fup_correction}}
#'
#' @export apply_fup_adjustment
apply_fup_adjustment <- function(fup, 
                         fup.correction=NULL,
                         Pow = NULL, 
                         pKa_Donor=NULL, 
                         pKa_Accept=NULL,
                         suppress.messages=FALSE,
                         minimum.Funbound.plasma=0.0001)
{
  if (is.null(fup.correction))
  {
    fup.correction <- calc_fup_correction(parameters=list(Pow = Pow,
                                          pKa_Donor = pKa_Donor,
                                          pKa_Accept = pKa_Accept))
  }
  fup.corrected <- max(fup * fup.correction,
                   minimum.Funbound.plasma,
                   na.rm = TRUE) # Enforcing a sanity check on 
                                             # plasma binding
  
  if (!suppress.messages) 
  {
    warning('Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction.')
  }
  
  return(set_httk_precision(fup.corrected))
}

Try the httk package in your browser

Any scripts or data that you put into this service are public.

httk documentation built on March 7, 2023, 7:26 p.m.