Please send questions to wambaugh.john@epa.gov
from “Evaluation of a Rapid, Generic Human Gestational Dose Model”
Dustin F.Kapraun, Mark Sfeir, Robert Pearce, Sarah Davidson, Annie Lumen, Andre Dallmann, Richard Judson, John F.Wambaugh
Reproductive Toxicology, 2022
https://doi.org/10.1016/j.reprotox.2022.09.004
Chemical risk assessment considers potentially susceptible populations including pregnant women and developing fetuses. Humans encounter thousands of chemicals in their environments, few of which have been fully characterized in terms of internal human dosimetry and mode-of-action. Toxicokinetic (TK) information is needed to relate chemical exposure to potentially bioactive tissue concentrations. Observational data describing human gestational exposures are unavailable for most chemicals, but physiologically based TK (PBTK) models estimate such exposures. However, development of chemical-specific PBTK models themselves requires considerable time and resources. As an alternative, generic PBTK approaches describe a standardized physiology and characterize chemicals with a set of standard physical and TK descriptors – primarily plasma protein binding and hepatic clearance. Here we report and evaluate a generic PBTK model of a human mother and developing fetus. We used a previously published set of formulas describing the major anatomical and physiological changes that occur during pregnancy to augment the High-Throughput Toxicokinetics (httk) software package. We performed simulations to estimate the ratio of concentrations in maternal and fetal plasma and compared these estimatesto literature in vivo measurements. We evaluated the model with literature in vivo time-course measurements of maternal plasma concentrations in pregnant and non-pregnant women. Finally, we demonstrated conceptual prioritization of chemicals measured in maternal serum based on predicted fetal brain concentrations. This new generic model can be used for TK simulations of any of the 856 chemicals with existing human-specific in vitro data that were found to be within the domain of the model, as well as any new chemicals for which such data become available. With sufficient evaluation, this gestational model may allow for in vitro to in vivo extrapolation of point of departure doses relevant to reproductive and developmental toxicity.
This vignette was created with httk v2.1.0. Although we attempt to maintain backward compatibility, if you encounter issues with the latest release of httk and cannot easily address the changes, historical versions of httk are available from: https://cran.r-project.org/src/contrib/Archive/httk/
R package knitr generates html and PDF documents from this RMarkdown file, Each bit of code that follows is known as a “chunk”. We start by telling knitr how we want our chunks to look.
::opts_chunk$set(collapse = TRUE, comment = '#>')
knitroptions(rmarkdown.html_vignette.check_title = FALSE)
It is a bad idea to let variables and other information from previous R sessions float around, so we first remove everything in the R memory.
rm(list=ls())
If you are using the RMarkdown version of this vignette (extension, .RMD) you will be able to see that several chunks of code in this vignette have the statement “eval = execute.vignette”. The next chunk of code, by default, sets execute.vignette = FALSE. This means that the code is included (and necessary) but was not run when the vignette was built. We do this because some steps require extensive computing time and the checks on CRAN limit how long we can spend building the package. If you want this vignette to work, you must run all code, either by cutting and pasting it into R. Or, if viewing the .RMD file, you can either change execute.vignette to TRUE or press “play” (the green arrow) on each chunk in RStudio.
# Set whether or not the following chunks will be executed (run):
<- FALSE execute.vignette
We use the command ‘library()’ to load various R packages for our analysis. If you get the message “Error in library(X) : there is no package called ‘X’” then you will need to install that package:
From the R command prompt:
install.packages(“X”)
Or, if using RStudio, look for ‘Install Packages’ under ‘Tools’ tab.
#
#
# Setup
#
#
#library(readxl)
library(ggplot2)
library(httk)
library(scales)
library(gridExtra)
library(cowplot)
<- function(x) {
scientific_10 <- gsub("1e", "10^", scientific_format()(x))
out <- gsub("\\+","",out)
out <- gsub("10\\^01","10",out)
out <- parse(text=gsub("10\\^00","1",out))
out
}
<- function(x)
RMSE
{mean(x$residuals^2)^(1/2)
}
The number of chemicals with in vitro TK data (\(Cl_{int}\) and \(f_{up}\)) that are also non-volatile and non-PFAS can be found using:
length(get_cheminfo(model="fetal_pbtk",suppress.messages=TRUE))
Data sets were curated from the literature to allow evaluation of the gestational PBTK model. In all cases chemical identities from the original publications were mapped onto DTXSID’s from the CompTox Chemicals Dashboard (https://comptox.epa.gov/dashboard) [Williams et al., 2017] (https://doi.org/10.1186/s13321-017-0247-6). Statistical testing for correlation between predictions and observations was performed using R function “lm” and p-values were calculated according to an F-distribution.
Aylward et al., 2014 compiled measurements of the ratio of maternal to fetal cord blood chemical concentrations at birth for a range of chemicals with environmental routes of exposure, including bromodiphenyl ethers, fluorinated compounds, organochlorine pesticides, polyaromatic hydrocarbons, tobacco smoke components, and vitamins. The PBTK model does not have an explicit cord blood compartment, so the ratio between maternal and fetal venous plasma concentrations was used as a surrogate when making comparisons of model predictions to these data.. For each chemical three daily oral doses (every eight hours) total 1 mg/kg/day were simulated starting from the 13th week of gestation until full term (40 weeks). Simulations were made both with and without the correction to \(f_{up}^f\).
#MFdata <- read_excel("Aylward-MatFet.xlsx")
<- httk::aylward2014
MFdata
cat(paste("summarized data from over 100 studies covering ",
length(unique(MFdata$DTXSID)[!(unique(MFdata$DTXSID)%in%c("","-"))]),
" unique chemicals structures\n",sep=""))
# We don't want to exclude the volatiles and PFAS at this point:
<- subset(MFdata,DTXSID %in% get_cheminfo(
MFdata.httk info="DTXSID",
suppress.messages=TRUE))
$Chemical.Category=="bromodiphenylethers",
MFdata.httk[MFdata.httk"Chemical.Category"] <- "Bromodiphenylethers"
$Chemical.Category=="organochlorine Pesticides",
MFdata.httk[MFdata.httk"Chemical.Category"] <- "Organochlorine Pesticides"
$Chemical.Category=="polyaromatic hydrocarbons",
MFdata.httk[MFdata.httk"Chemical.Category"] <- "Polyaromatic Hydrocarbons"
colnames(MFdata.httk)[colnames(MFdata.httk) ==
"infant.maternal.conc...Central.tendency..calculate.j.k..or.report.paired.result."] <-
"MFratio"
colnames(MFdata.httk)[colnames(MFdata.httk) ==
"PREFERRED_NAME"] <-
"Chemical"
colnames(MFdata.httk)[colnames(MFdata.httk) ==
"details.on.matrix.comparison...e.g...cord.blood.lipid..maternal.serum.lipid..or.cord.blood.wet.weight..maternal.whole.blood.wet.weight"] <-
"Matrix"
# Format the columns:
$MFratio <- as.numeric(MFdata.httk$MFratio)
MFdata.httk$Chemical <- as.factor(MFdata.httk$Chemical)
MFdata.httk$Matrix <- as.factor(MFdata.httk$Chemical)
MFdata.httk$Chemical.Category <- as.factor(MFdata.httk$Chemical.Category)
MFdata.httk
colnames(MFdata.httk)[15] <- "infant"
colnames(MFdata.httk)[16] <- "maternal"
colnames(MFdata.httk)[17] <- "obs.units"
$infant <- suppressWarnings(as.numeric(MFdata.httk$infant))
MFdata.httk$maternal <- suppressWarnings(as.numeric(MFdata.httk$maternal))
MFdata.httk$AVERAGE_MASS <- as.numeric(MFdata.httk$AVERAGE_MASS) MFdata.httk
<- c("ng/ml","ng/mL","ug/L","ug/l","ng/mL serum","ng/g",
convert1.units "ng/g wet wt.","ppb")
$obs.units%in%convert1.units,"infant"] <-
MFdata.httk[MFdata.httk$obs.units%in%convert1.units,"infant"] / # ng/ml = ug/L
MFdata.httk[MFdata.httk$obs.units%in%convert1.units,"AVERAGE_MASS"] # ug/L -> uM
MFdata.httk[MFdata.httk$obs.units%in%convert1.units,"maternal"] <-
MFdata.httk[MFdata.httk$obs.units%in%convert1.units,"maternal"] / # ng/ml = ug/L
MFdata.httk[MFdata.httk$obs.units%in%convert1.units,"AVERAGE_MASS"] # ug/L -> uM
MFdata.httk[MFdata.httk$obs.units%in%convert1.units,"obs.units"] <- "uM"
MFdata.httk[MFdata.httk
<- c("mg/L","ppm")
convert2.units
$obs.units%in%convert2.units,"infant"] <-
MFdata.httk[MFdata.httk$obs.units%in%convert2.units,"infant"] * 1000 / # mg/L = ug/L
MFdata.httk[MFdata.httk$obs.units%in%convert2.units,"AVERAGE_MASS"] # ug/L -> uM
MFdata.httk[MFdata.httk$obs.units%in%convert2.units,"maternal"] <-
MFdata.httk[MFdata.httk$obs.units%in%convert2.units,"maternal"]* 1000 / # mg/L = ug/L
MFdata.httk[MFdata.httk$obs.units%in%convert2.units,"AVERAGE_MASS"] # ug/L -> uM
MFdata.httk[MFdata.httk$obs.units%in%convert2.units,"obs.units"] <- "uM" MFdata.httk[MFdata.httk
Note that we can’t do an absolute scale comparison (for example, fetal:fetal or maternal:maternal) because we don’t know the dose for the Aylward data but we assume that the maternal:fetal ratio is independent of dose and so we use the plasma ratio at full term (40 weeks) resulting from a 1 mg/kg/day exposure rate starting in week 13.
# Simulate starting from the 13th week of gestation until full term (40 weeks):
<- sort(unique(c(seq(13 * 7, 40 * 7, 0.25),seq(278,280,.1))))
times
# For each chemical with maternal-fetal ratio data and HTTK in vitro data:
for (this.id in unique(MFdata.httk$DTXSID))
{print(this.id)
<- parameterize_steadystate(dtxsid=this.id,
p suppress.messages=TRUE)
# skip chemicals where Fup is 0:
if (p$Funbound.plasma>1e-4)
{
# Load the chemical-specifc paramaters:
<- parameterize_fetal_pbtk(dtxsid=this.id,
p fetal_fup_adjustment =TRUE,
suppress.messages=TRUE)
# Skip chemicals where the 95% credible interval for Fup spans more than 0.1 to
# 0.9 (that is, Fup is effectively unknown):
if (!is.na(p$Funbound.plasma.dist))
{if (as.numeric(strsplit(p$Funbound.plasma.dist,",")[[1]][3])>0.9 &
as.numeric(strsplit(p$Funbound.plasma.dist,",")[[1]][2])<0.11)
{<- TRUE
skip else skip <- FALSE
} else skip <- FALSE
}
if (!skip)
{# Solve the PBTK equations for the full simulation time assuming 1 total daily
# dose of 1 mg/kg/day spread out over three evenly spaces exposures:
<- solve_fetal_pbtk(
out parameters=p,
dose=0,
times=times,
daily.dose=1,
doses.per.day=3,
output.units = "uM",
suppress.messages=TRUE)
# Identify the concentrations from the final (279th) day:
<- which(out[,"time"]>279)
last.row <- last.row[!duplicated(out[last.row,"time"])]
last.row # Average over the final day:
$DTXSID==this.id,"Mat.pred"] <- mean(out[last.row,"Cplasma"])
MFdata.httk[MFdata.httk$DTXSID==this.id,"Fet.pred"] <- mean(out[last.row,"Cfplasma"])
MFdata.httk[MFdata.httk$DTXSID==this.id,"MFratio.pred"] <-
MFdata.httk[MFdata.httkmean(out[last.row,"Cplasma"])/mean(out[last.row,"Cfplasma"])
# Repeat the analysis without the adjustment to fetal Fup:
<- parameterize_fetal_pbtk(dtxsid=this.id,
p fetal_fup_adjustment =FALSE,
suppress.messages = TRUE)
<- solve_fetal_pbtk(
out parameters=p,
dose=0,
times=times,
daily.dose=1,
doses.per.day=3,
output.units = "uM",
maxsteps=1e7,
suppress.messages = TRUE)
<- which(out[,"time"]>279) # The whole final day
last.row <- last.row[!duplicated(out[last.row,"time"])]
last.row $DTXSID==this.id,"Mat.pred.nofup"] <- mean(out[last.row,"Cplasma"])
MFdata.httk[MFdata.httk$DTXSID==this.id,"Fet.pred.nofup"] <- mean(out[last.row,"Cfplasma"])
MFdata.httk[MFdata.httk$DTXSID==this.id,"MFratio.pred.nofup"] <-
MFdata.httk[MFdata.httkmean(out[last.row,"Cplasma"])/mean(out[last.row,"Cfplasma"])
}
}
}
# Something is wrong with cotinine:
<- subset(MFdata.httk,Chemical!="Cotinine")
MFdata.httk
<- MFdata.httk[which(MFdata.httk$MFratio==max(MFdata.httk$MFratio)),]
max.chem <- MFdata.httk[which(MFdata.httk$MFratio==min(MFdata.httk$MFratio)),]
min.chem cat(paste("The minimum observed ratio was ",
signif(min.chem[,"MFratio"],2),
" for ",
"Chemical"],
min.chem[," and the maximum was ",
signif(max.chem[,"MFratio"],2),
" for ",
"Chemical"],
max.chem[,".\n",sep=""))
<- NULL
MFdata.main <- NULL
MFdata.outliers for (this.id in unique(MFdata.httk$DTXSID))
{<- subset(MFdata.httk,DTXSID==this.id)
this.subset <- this.subset[1,]
this.row $N.obs <- dim(this.subset)[1]
this.row$MFratio <- median(this.subset$MFratio)
this.row$MFratio.Q25 <- quantile(this.subset$MFratio,0.25)
this.row$MFratio.Q75 <- quantile(this.subset$MFratio,0.75)
this.row<- rbind(MFdata.main,this.row)
MFdata.main <- subset(this.subset,
this.subset <this.row$MFratio.Q25 |
MFratio>this.row$MFratio.Q75)
MFratio<- rbind(MFdata.outliers,this.subset)
MFdata.outliers }
<- ggplot(data=MFdata.main) +
FigCa geom_segment(color="grey",aes(
x=MFratio.pred.nofup,
y=MFratio.Q25,
xend=MFratio.pred.nofup,
yend=MFratio.Q75))+
geom_point(aes(
x=MFratio.pred.nofup,
y=MFratio,
shape=Chemical.Category,
color=Chemical.Category),
size=4) +
scale_shape_manual(values=c(15, 16,2, 23, 0, 1, 17, 5, 6))+
geom_point(data=MFdata.outliers,aes(
x=MFratio.pred.nofup,
y=MFratio,
shape=Chemical.Category,
color=Chemical.Category),
size=2) +
xlim(0,2) +
ylim(0,3) +
# geom_text(aes(x=AUC,y=Critical.concentration,label=Compound.abbrev,color=Chemical)) +
# scale_y_log10(label=scientific_10) +
#,limits=c(10^-7,100)) +
# scale_x_log10(label=scientific_10) +
# ,limits=c(10^-7,100)) +
# annotation_logticks() +
geom_abline(slope=1, intercept=0) +
# geom_abline(slope=1, intercept=1,linetype="dashed") +
# geom_abline(slope=1, intercept=-1,linetype="dashed") +
ylab(expression(paste(italic("In vivo")," Mat:Fet Plasma Ratio"))) +
xlab("Generic PBTK Predicted Ratio") +
# scale_color_brewer(palette="Set2") +
theme_bw() +
theme(legend.position="bottom")+
theme( text = element_text(size=14))+
theme(legend.text=element_text(size=10))+
guides(color=guide_legend(title="Class",nrow=3,byrow=TRUE))+
guides(shape=guide_legend(title="Class",nrow=3,byrow=TRUE))
print(FigCa)
cat(paste("In Figure 4 we compare predictions made with our high-throughput \
human gestational PBTK model with experimental observations on a per chemical \
basis wherever we had both in vitro HTTK data and in vivo observations (",
length(unique(MFdata.main$DTXSID)),
" chemicals).\n",sep=""))
<- subset(MFdata.main,N.obs>1)
repeats
cat(paste("Multiple observations were available for ",
dim(repeats)[1],
" of the chemicals,\n",sep=""))
<- as.data.frame(repeats[which(repeats$MFratio==max(repeats$MFratio)),])
max.chem <- as.data.frame(repeats[which(repeats$MFratio==min(repeats$MFratio)),])
min.chem
cat(paste("However, among the chemicals with repeated observations, the median \
observations only ranged from ",
signif(min.chem[,"MFratio"],2),
" for ",
"Chemical"],
min.chem[," to ",
signif(max.chem[,"MFratio"],2),
" for ",
"Chemical"],
max.chem[,".\n",sep=""))
<- as.data.frame(MFdata.main[which(MFdata.main$MFratio.pred==max(MFdata.main$MFratio.pred,na.rm=TRUE)),])
max.chem <- as.data.frame(MFdata.main[which(MFdata.main$MFratio.pred==min(MFdata.main$MFratio.pred,na.rm=TRUE)),])
min.chem
cat(paste("The predictions for all chemicals ranged from ",
signif(min.chem[,"MFratio.pred"],2),
" for ",
"Chemical"],
min.chem[," to ",
signif(max.chem[,"MFratio.pred"],2),
" for ",
"Chemical"],
max.chem[,".\n",sep=""))
<- lm(data=MFdata.main,MFratio~MFratio.pred.nofup)
fit1 summary(fit1)
RMSE(fit1)
<- lm(data=subset(MFdata.main,
fit1sub !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))),
~MFratio.pred.nofup)
MFratiosummary(fit1sub)
RMSE(fit1sub)
<- ggplot(data=MFdata.main) +
FigCb geom_segment(color="grey",aes(
x=MFratio.pred,
y=MFratio.Q25,
xend=MFratio.pred,
yend=MFratio.Q75))+
geom_point(aes(
x=MFratio.pred,
y=MFratio,
shape=Chemical.Category,
color=Chemical.Category),
size=3) +
scale_shape_manual(values=c(15, 16,2, 23, 0, 1, 17, 5, 6))+
geom_point(data=MFdata.outliers,aes(
x=MFratio.pred,
y=MFratio,
shape=Chemical.Category,
color=Chemical.Category),
size=1) +
xlim(0,2) +
ylim(0,3) +
# geom_text(aes(x=AUC,y=Critical.concentration,label=Compound.abbrev,color=Chemical)) +
# scale_y_log10(label=scientific_10) +
#,limits=c(10^-7,100)) +
# scale_x_log10(label=scientific_10) +
# ,limits=c(10^-7,100)) +
# annotation_logticks() +
geom_abline(slope=1, intercept=0) +
# geom_abline(slope=1, intercept=1,linetype="dashed") +
# geom_abline(slope=1, intercept=-1,linetype="dashed") +
ylab(expression(paste(italic("In vivo")," Mat:Fet Plasma Ratio"))) +
xlab(expression(paste(italic("In vitro")," Predicted Ratio"))) +
# scale_color_brewer(palette="Set2") +
theme_bw() +
theme(legend.position="bottom")+
theme( text = element_text(size=14))+
theme(legend.text=element_text(size=10))+
guides(color=guide_legend(title="Class",nrow=3,byrow=TRUE))+
guides(shape=guide_legend(title="Class",nrow=3,byrow=TRUE))
print(FigCb)
# Mean logHenry's law constant for PAH's:
mean(subset(chem.physical_and_invitro.data,DTXSID%in%subset(MFdata.main,Chemical.Category=="Polyaromatic Hydrocarbons")$DTXSID)$logHenry)
<- subset(chem.physical_and_invitro.data,logHenry < -4.5)$DTXSID
nonvols <- chem.physical_and_invitro.data$DTXSID[regexpr("fluoro",tolower(chem.physical_and_invitro.data$Compound))!=-1]
fluoros
<- lm(data=MFdata.main,MFratio~MFratio.pred)
fit2 summary(fit2)
RMSE(fit2)
<- lm(data=subset(MFdata.main,
fit2sub !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))),
~MFratio.pred)
MFratiosummary(fit2sub)
RMSE(fit2sub)
cat(paste("When volatile and fluorinated chemicals are omitted only ",
dim(subset(MFdata.main,
!(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))))[1],
" evaluation chemicals remain, but the R2 is ",
signif(summary(fit1sub)$adj.r.squared,2),
" and the RMSE is ",
signif(RMSE(fit1sub),2),
" without the correction. When the fetal plasma fraction unbound correction is used, the predictivity decreases, slightly: R2 is ",
signif(summary(fit2sub)$adj.r.squared,2),
" and the RMSE is ",
signif(RMSE(fit2sub),2),
" for the non-volatile, non-fluorinated chemicals.\n",
sep=""))
cat(paste("We compare the RMSE for our predictions to the standard deviation \
of the observations ",
signif(sd(MFdata.main$MFratio)[1],2),
" (",
signif(sd(subset(MFdata.main,
!(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons")))$MFratio),2),
" for non PAH or fluorinated compounds).\n",sep=""))
cat(paste("The average standard deviation for chemicals with repeated observations was ",
signif(sd(subset(MFdata.main,N.obs>1)$MFratio)[1],2),
" (",
signif(sd(subset(MFdata.main,
> 1 &
N.obs !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons")))$MFratio),2),
" for non PAH or fluorinated compounds).\n",sep=""))
<- lm(data=repeats,MFratio~MFratio.pred.nofup)
fit3 summary(fit3)
RMSE(fit3)
<- lm(data=subset(MFdata.main, N.obs > 1 &
fit3sub !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))),
~MFratio.pred.nofup)
MFratiosummary(fit3sub)
<- lm(data=subset(MFdata.main,N.obs > 1),MFratio~MFratio.pred)
fit4 summary(fit4)
RMSE(fit4)
<- lm(data=subset(MFdata.main, N.obs > 1 &
fit4sub !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))),
~MFratio.pred)
MFratiosummary(fit4sub)
cat(paste("Overall, we observed relatively poor correlation (R2 = ",
signif(summary(fit1)$adj.r.squared,2),
", RMSE = ",
signif(RMSE(fit1),2),
") without our fetal fup correction that was unchanged with that assumption (R2 = ",
signif(summary(fit2)$adj.r.squared,2),
", RMSE = ",
signif(RMSE(fit2),2),
").\n",sep=""))
<-subset(MFdata.main,N.obs > 1)
repeats cat(paste("The RMSE of the predictions for the ",
dim(subset(repeats,!(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))))[1],
" non-PAH and non-fluorinated compounds with repeated observations is ",
signif(RMSE(fit4sub),2),
" with the fup correction and ",
signif(RMSE(fit3sub),2),
" without.\n",sep=""))
cat(paste("These values are close to the standard deviation of the mean but the p-value for the chemicals with repeated observations is ",
signif(pf(
summary(fit4sub)$fstatistic[1],
summary(fit4sub)$fstatistic[2],
summary(fit4sub)$fstatistic[3]),2),
" indicating some value for the predictive model, albeit for only ",
dim(subset(repeats,!(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons"))))[1],
" chemicals",sep=""))
<- data.frame()
Fig4.table "Number of Chemicals","All Fig 4"] <- length(unique(MFdata.httk$DTXSID))
Fig4.table["Number of Observations","All Fig 4"] <- dim(MFdata.httk)[1]
Fig4.table["Observed Mean (Min - Max)","All Fig 4"] <- paste(
Fig4.table[signif(mean(MFdata.httk$MFratio),2)," (",
signif(min(MFdata.httk$MFratio),2)," - ",
signif(max(MFdata.httk$MFratio),2),")",sep="")
"Observed Standard Deviation","All Fig 4"] <- signif(sd(MFdata.httk$MFratio),2)
Fig4.table["Predicted Mean (Min - Max)","All Fig 4"] <- paste(
Fig4.table[signif(mean(MFdata.main$MFratio.pred,na.rm=TRUE),2)," (",
signif(min(MFdata.main$MFratio.pred,na.rm=TRUE),2)," - ",
signif(max(MFdata.main$MFratio.pred,na.rm=TRUE),2),")",sep="")
"RMSE","All Fig 4"] <- signif(RMSE(fit2),2)
Fig4.table["R-squared","All Fig 4"] <- signif(summary(fit2)[["adj.r.squared"]],2)
Fig4.table["p-value","All Fig 4"] <- signif(summary(fit2)[["coefficients"]]["MFratio.pred",4],2)
Fig4.table[
<- subset(MFdata.httk,
MFdata.sub1 !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons")))
"Number of Chemicals","No PFAS/PAH"] <- length(unique(MFdata.sub1$DTXSID))
Fig4.table["Number of Observations","No PFAS/PAH"] <- dim(MFdata.sub1)[1]
Fig4.table["Observed Mean (Min - Max)","No PFAS/PAH"] <- paste(
Fig4.table[signif(mean(MFdata.sub1$MFratio,na.rm=TRUE),2)," (",
signif(min(MFdata.sub1$MFratio,na.rm=TRUE),2)," - ",
signif(max(MFdata.sub1$MFratio,na.rm=TRUE),2),")",sep="")
"Observed Standard Deviation","No PFAS/PAH"] <- signif(sd(MFdata.sub1$MFratio),2)
Fig4.table[
<- subset(MFdata.main,
MFdata.sub2 !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons")))
"Predicted Mean (Min - Max)","No PFAS/PAH"] <- paste(
Fig4.table[signif(mean(MFdata.sub2$MFratio.pred,na.rm=TRUE),2)," (",
signif(min(MFdata.sub2$MFratio.pred,na.rm=TRUE),2)," - ",
signif(max(MFdata.sub2$MFratio.pred,na.rm=TRUE),2),")",sep="")
"RMSE","No PFAS/PAH"] <- signif(RMSE(fit2sub),2)
Fig4.table["R-squared","No PFAS/PAH"] <- signif(summary(fit2sub)[["adj.r.squared"]],2)
Fig4.table["p-value","No PFAS/PAH"] <- signif(summary(fit2sub)[["coefficients"]]["MFratio.pred",4],2)
Fig4.table[
<- subset(MFdata.main,N.obs > 1 &
MFdata.sub3 !(Chemical.Category %in% c(
"Fluorinated compounds",
"Polyaromatic Hydrocarbons")))
"Number of Chemicals","Replicates Only"] <- length(unique(MFdata.sub3$DTXSID))
Fig4.table["Number of Observations","Replicates Only"] <- dim(MFdata.sub3)[1]
Fig4.table["Observed Mean (Min - Max)","Replicates Only"] <- paste(
Fig4.table[signif(mean(MFdata.sub3$MFratio),2)," (",
signif(min(MFdata.sub3$MFratio),2)," - ",
signif(max(MFdata.sub3$MFratio),2),")",sep="")
"Observed Standard Deviation","Replicates Only"] <- signif(sd(MFdata.sub3$MFratio),2)
Fig4.table[
"Predicted Mean (Min - Max)","Replicates Only"] <- paste(
Fig4.table[signif(mean(MFdata.sub3$MFratio.pred,na.rm=TRUE),2)," (",
signif(min(MFdata.sub3$MFratio.pred,na.rm=TRUE),2)," - ",
signif(max(MFdata.sub3$MFratio.pred,na.rm=TRUE),2),")",sep="")
"RMSE","Replicates Only"] <- signif(RMSE(fit4sub),2)
Fig4.table["R-squared","Replicates Only"] <- signif(summary(fit4sub)[["adj.r.squared"]],2)
Fig4.table["p-value","Replicates Only"] <- signif(summary(fit4sub)[["coefficients"]]["MFratio.pred",4],2)
Fig4.table[
write.csv(Fig4.table[1:6,],file="Fig4Table.csv")
Dallmann et al., 2018 includes descriptions of toxicokinetics summary statistics, including time-integrated plasma concentrations (area under the curve or AUC) for six drugs administered to a sample of subjects including both pregnant and non-pregnant women. Additional data from X and Y for two chemicals among the httk library were collected from the literature.
#TKstats <- as.data.frame(read_excel("MaternalFetalAUCData.xlsx"))
<- httk::pregnonpregaucs
TKstats
<- unique(TKstats$DTXSID)
ids cat(paste(sum(ids %in% get_cheminfo(
model="fetal_pbtk",
info="dtxsid",
suppress.messages=TRUE)),
"chemicals for which the model fetal_pbtk can run that are in the Dallmann data set."))
<- subset(TKstats,DTXSID!="" & Parameter=="Cmax")
TKstats.Cmax <- subset(TKstats,DTXSID!="" & Parameter %in% c("AUCinf","AUClast"))
TKstats
<- unique(TKstats$DTXSID)
ids cat(paste(sum(ids %in% get_cheminfo(
model="fetal_pbtk",
info="dtxsid",
suppress.messages=TRUE)),
"chemicals for which the model fetal_pbtk can run that have AUCs in the Dallmann data set."))
# Assumed body weight (kg) from Kapraun 2019
<- 61.103
BW.nonpreg
#TKstats$Dose <- TKstats$Dose/BW
#TKstats$Dose.Units <- "mg/kg"
colnames(TKstats)[colnames(TKstats)=="Observed Pregnant"] <- "Observed.Pregnant"
colnames(TKstats)[colnames(TKstats)=="Observed Pregnant5"] <- "Observed.Pregnant5"
colnames(TKstats)[colnames(TKstats)=="Observed Non-Pregnant"] <- "Observed.Non.Pregnant"
colnames(TKstats)[colnames(TKstats)=="Observed Non-Pregnant2"] <- "Observed.Non.Pregnant2"
colnames(TKstats)[colnames(TKstats)=="Dose Route"] <- "Dose.Route"
The circumstances of the dosing varied slightly between drugs and pregnancy status required variation in simulated dose regimen as summarized in Table 12. The function solve_fetal_pbtk was used to determine the time-integrated plasma concentration (area under the curve, or AUC) for the mothers both when pregnant and non-pregnant.
for (this.id in unique(TKstats$DTXSID))
{if (any(regexpr("ng",TKstats[TKstats$DTXSID==this.id,"Dose Units"])!=-1))
{
} if (this.id %in% get_cheminfo(
info="DTXSID",
model="fetal_pbtk",
suppress.messages=TRUE))
{<- subset(TKstats,DTXSID==this.id)
this.subset <- parameterize_pbtk(
p dtxsid=this.id,
suppress.messages=TRUE)
$hematocrit <- 0.39412 # Kapraun 2019 (unitless)
p$Rblood2plasma <- calc_rblood2plasma(
pparameters=p,
suppress.messages=TRUE)
$BW <- BW.nonpreg
p$Qcardiacc <- 301.78 / p$BW^(3/4) # Kapraun 2019 (L/h/kg^3/4)
pfor (this.route in unique(this.subset$Dose.Route))
{<- subset(this.subset, Dose.Route==this.route)
this.route.subset if (this.route.subset[1,"Gestational.Age.Weeks"] > 12)
{<- this.route.subset$Dose
this.dose # Non-pregnant PBPK:
<- solve_pbtk(
out.nonpreg parameters=p,
times = seq(0, this.route.subset[1,"NonPreg.Duration.Days"],
1,"NonPreg.Duration.Days"]/100),
this.route.subset[dose=this.dose/BW.nonpreg, # mg/kg
daily.dose=NULL,
iv.dose=(this.route=="iv"),
output.units="uM",
suppress.messages=TRUE)
# Pregnant PBPK:
<- suppressWarnings(calc_maternal_bw(
BW.preg week=this.route.subset[1,"Gestational.Age.Weeks"]))
<- solve_fetal_pbtk(
out.preg dtxsid=this.id,
times = seq(
1,"Gestational.Age.Weeks"]*7,
this.route.subset[1,"Gestational.Age.Weeks"]*7 +
this.route.subset[1,"Preg.Duration.Days"],
this.route.subset[1,"Preg.Duration.Days"]/100),
this.route.subset[dose=this.dose/BW.preg, # mg/kg
iv.dose=(this.route=="iv"),
daily.dose=NULL,
output.units="uM",
suppress.messages=TRUE)
if (any(regexpr("AUC",this.subset$Parameter)!=-1))
{$DTXSID==this.id &
TKstats[TKstats$Dose.Route == this.route &
TKstatsregexpr("AUC",TKstats$Parameter)!=-1,
"Predicted.Non.Pregnant.httk"] <- max(out.nonpreg[,"AUC"])*24 #uMdays->uMh
$DTXSID==this.id &
TKstats[TKstats$Dose.Route == this.route &
TKstatsregexpr("AUC",TKstats$Parameter)!=-1,
"Predicted.Pregnant.httk"] <- max(out.preg[,"AUC"])*24 # uM days -> uM h
}if (any(regexpr("Cmax",this.subset$Parameter)!=-1))
{$DTXSID==this.id &
TKstats[TKstats$Dose.Route == this.route &
TKstatsregexpr("Cmax",TKstats$Parameter)!=-1,
"Predicted.Non.Pregnant.httk"] <- max(out.nonpreg[,"Cplasma"])
$DTXSID==this.id &
TKstats[TKstats$Dose.Route == this.route &
TKstatsregexpr("Cmax",TKstats$Parameter)!=-1,
"Predicted.Pregnant.httk"] <- max(out.preg[,"Cfplasma"])
}
}
}
}
}
$Ratio.obs <- TKstats$Observed.Pregnant / TKstats$Observed.Non.Pregnant
TKstats$Ratio.httk <- TKstats$Predicted.Pregnant.httk / TKstats$Predicted.Non.Pregnant.httk
TKstats<- subset(TKstats, !is.na(TKstats$Ratio.httk))
TKstats
write.csv(TKstats,file="Table-Dallmann2018.csv",row.names=FALSE)
<- ggplot(data=TKstats) +
FigEa geom_point(aes(
y=Observed.Non.Pregnant2,
x=Predicted.Non.Pregnant.httk,
shape=Dose.Route,
alpha=Drug,
fill=Drug),
size=5) +
geom_abline(slope=1, intercept=0) +
geom_abline(slope=1, intercept=1, linetype=3) +
geom_abline(slope=1, intercept=-1, linetype=3) +
scale_shape_manual(values=c(22,24))+
xlab("httk Predicted (uM*h)") +
ylab("Observed") +
scale_x_log10(#limits=c(10^-3,10^3),
label=scientific_10) +
scale_y_log10(#limits=c(10^-3,10^3),
label=scientific_10) +
ggtitle("Non-Pregnant") +
theme_bw() +
theme(legend.position="none")+
theme( text = element_text(size=12)) +
annotate("text", x = 0.1, y = 1000, label = "A", fontface =2)
#print(FigEa)
cat(paste(
"For the Dallman et al. (2018) data we observe an average-fold error (AFE)\n\ of",
signif(mean(TKstats$Predicted.Non.Pregnant.httk/TKstats$Observed.Non.Pregnant2),2),
"and a RMSE (log10-scale) of",
signif((mean((log10(TKstats$Predicted.Non.Pregnant.httk)-log10(TKstats$Observed.Non.Pregnant2))^2))^(1/2),2),
"for non-pregnant woman.\n"))
<- ggplot(data=TKstats) +
FigEb geom_point(aes(
y=Observed.Pregnant5,
x=Predicted.Pregnant.httk,
shape=Dose.Route,
alpha=Drug,
fill=Drug),
size=5) +
geom_abline(slope=1, intercept=0) +
geom_abline(slope=1, intercept=1, linetype=3) +
geom_abline(slope=1, intercept=-1, linetype=3) +
scale_shape_manual(values=c(22,24))+
xlab("httk Predicted (uM*h)") +
ylab("Observed") +
scale_x_log10(#limits=c(10^-5,10^3),
label=scientific_10) +
scale_y_log10(#limits=c(10^-5,10^3),
label=scientific_10) +
ggtitle("Pregnant")+
theme_bw() +
theme(legend.position="none")+
theme( text = element_text(size=12)) +
annotate("text", x = 0.1, y = 300, label = "B", fontface =2)
#print(FigEb)
cat(paste(
"We observe an AFE of",
signif(mean(TKstats$Predicted.Pregnant.httk/TKstats$Observed.Pregnant5),2),
"and a RMSE (log10-scale) of",
signif((mean((log10(TKstats$Predicted.Pregnant.httk)-log10(TKstats$Observed.Pregnant5))^2))^(1/2),2),
"for pregnant woman.\n"))
<- ggplot(data=TKstats) +
FigEc geom_point(aes(
x=Predicted.Non.Pregnant.httk,
y=Predicted.Pregnant.httk,
shape=Dose.Route,
alpha=Drug,
fill=Drug),
size=5) +
geom_abline(slope=1, intercept=0) +
geom_abline(slope=1, intercept=1, linetype=3) +
geom_abline(slope=1, intercept=-1, linetype=3) +
scale_shape_manual(values=c(22,24),name="Route")+
ylab("httk Pregnant (uM*h)") +
xlab("httk Non-Pregnant (uM*h)") +
scale_x_log10(#limits=c(10^-1,10^2),
label=scientific_10) +
scale_y_log10(#limits=c(10^-1,10^2),
label=scientific_10) +
ggtitle("Model Comparison") +
theme_bw() +
theme(legend.position="left")+
theme( text = element_text(size=12))+
theme(legend.text=element_text(size=10))+
guides(fill=guide_legend(ncol=2,override.aes=list(shape=21)),alpha=guide_legend(ncol=2),shape=guide_legend(ncol=2))
print(FigEc)
<- get_legend(FigEc)
FigEc
<- ggplot(data=subset(TKstats,!is.na(Ratio.httk))) +
FigEd geom_point(aes(
y=Ratio.obs,
x=Ratio.httk,
shape=Dose.Route,
alpha=Drug,
fill=Drug),
size=5) +
scale_shape_manual(values=c(22,24))+
xlab("httk Predicted") +
ylab("Observed") +
scale_x_continuous(limits=c(0.25,3)) +
scale_y_continuous(limits=c(0.25,3)) +
geom_abline(slope=1, intercept=0) +
geom_abline(slope=1, intercept=1, linetype=3) +
geom_abline(slope=1, intercept=-1, linetype=3) +
ggtitle("Ratio") +
theme_bw() +
theme(legend.position="none")+
theme( text = element_text(size=12)) +
annotate("text", x = 0.5, y = 2.75, label = "C", fontface =2)
dev.new()
grid.arrange(FigEa,FigEb,FigEc,FigEd,nrow=2)
write.csv(subset(TKstats,
!is.na(Ratio.httk)),
file="DallmanTable.txt")
For each tissue, the partition coefficient (which describes the ratio of the concentration in the tissue to concentration of unbound chemical in the plasma at equilibrium) is a constant. We calculate each partition coefficient using the method of Schmitt, 2008 as described by Pearce et al., 2017. The partition coefficient for any given type of tissue (for example, liver tissue) depends on fraction unbound in plasma (\(f_{up}^m\) or \(f_{up}^f\)), so in general these differ for mother and fetus.
Curley et al., 1969 compiled data on the concentration of a variety of pesticides in the cord blood of newborns and in the tissues of infants that were stillborn.
<- as.data.frame(read_excel("Curley1969.xlsx"))
Curley dim(Curley)
<- Curley[1,4:13]
Curley.compounds <- Curley[4:47,]
Curley colnames(Curley)[1] <- "Tissue"
colnames(Curley)[2] <- "N"
colnames(Curley)[3] <- "Stat"
The ratio of chemical concentration in tissue (\(C_y^f\)) vs. blood (\(C_{venb}^f\)) was related to the tissue-to-unbound-plasma concentration partition coefficients used in the PBTK model as \[ (C_y^f )/(C_{venb}^f )=(C_y^f)/(R_{b:p}^f \times C_{plas}^f )=(C_y^f \times f_{up}^f)/(R_{b:p}^f \times C_{up}^f)=(f_{up}^f)/(R_{b:p}^f) \times K_y^f \] where \(C_{up}^f\) denotes the concentration of substance unbound in the fetal plasma.
<- NULL
Curley.pcs <- subset(Curley, Tissue == "Cord Blood")
cord.blood suppressWarnings(
for (this.tissue in unique(Curley$Tissue))
if (this.tissue != "Cord Blood")
{<- subset(Curley, Tissue == this.tissue)
this.subset for (this.chemical in colnames(Curley)[4:13])
{if (!is.na(as.numeric(subset(this.subset,Stat=="Mean")[,this.chemical])) &
!is.na(as.numeric(subset(cord.blood,Stat=="Mean")[,this.chemical])))
{<- data.frame(
this.row Compound = Curley.compounds[,this.chemical],
DTXSID = this.chemical,
Tissue = this.tissue,
PC = as.numeric(subset(this.subset,Stat=="Mean")[,this.chemical]) /
as.numeric(subset(cord.blood,Stat=="Mean")[,this.chemical])
)<- rbind(Curley.pcs,this.row)
Curley.pcs else if (!is.na((as.numeric(subset(this.subset,Stat=="Range")[,this.chemical]))) &
} !is.na((as.numeric(subset(cord.blood,Stat=="Mean")[,this.chemical]))))
{<- data.frame(
this.row Compound = Curley.compounds[,this.chemical],
DTXSID = this.chemical,
Tissue = this.tissue,
PC = as.numeric(subset(this.subset,Stat=="Range")[,this.chemical]) /
as.numeric(subset(cord.blood,Stat=="Mean")[,this.chemical])
)<- rbind(Curley.pcs,this.row)
Curley.pcs
}
}
}
)$Tissue=="Lungs","Tissue"] <- "Lung"
Curley.pcs[Curley.pcs
<- read_excel("PC_Data.xlsx")
pearce2017 <- subset(pearce2017,DTXSID%in%Curley.pcs$DTXSID)
pearce2017 any(pearce2017$DTXSID%in%Curley.pcs$DTXSID)
print("None of the Curley chems were in the Pearce 2017 PC predictor evaluation.")
Partition coefficients were measured for tissues, including placenta, in vitro by Csanady et al., 2002 for Bisphenol A and Diadzen.
<- read_excel("Csanady2002.xlsx",sheet="Table 2")
csanadybpa $Compound <- "Bisphenol A"
csanadybpa$DTXSID <- "DTXSID7020182"
csanadybpa<- csanadybpa[,c("Compound","DTXSID","Tissue","Mean")]
csanadybpa colnames(csanadybpa) <- colnames(Curley.pcs)
<- read_excel("Csanady2002.xlsx",sheet="Table 3",skip=1)
csanadydaid $Compound <- "Daidzein"
csanadydaid$DTXSID <- "DTXSID9022310"
csanadydaid<- csanadydaid[,c("Compound","DTXSID","Tissue","Mean...6")]
csanadydaid colnames(csanadydaid) <- colnames(Curley.pcs)
<- rbind(Curley.pcs,csanadybpa,csanadydaid)
Curley.pcs <- subset(Curley.pcs,Tissue!="Mammary gland") Curley.pcs
Three of the chemicals studied by Curley et al., 1969 were modeled by Weijs et al., 2013 using the same partition coefficients for mother and fetus. The values used represented “prior knowledge” summarizing the available literature.
<- read_excel("Weijs2013.xlsx",sheet="Table3",skip=1)
weijstab3 <- subset(weijstab3, !is.na(Compound) & !is.na(Tissue))
weijstab3 <- read_excel("Weijs2013.xlsx",sheet="Table4",skip=1)
weijstab4 <- subset(weijstab4, !is.na(Compound) & !is.na(Tissue))
weijstab4
for (this.compound in unique(weijstab3$Compound))
for (this.tissue in unique(weijstab3$Tissue))
{
Curley.pcs[$DTXSID==this.compound & Curley.pcs$Tissue==this.tissue,
Curley.pcs"Weijs2013"] <- weijstab3[weijstab3$Compound==this.compound &
$Tissue==this.tissue,"value"]
weijstab3
}
for (this.compound in unique(weijstab4$Compound))
for (this.tissue in unique(weijstab4$Tissue))
{
Curley.pcs[$DTXSID==this.compound & Curley.pcs$Tissue==this.tissue,
Curley.pcs"Weijs2013"] <- weijstab4[weijstab4$Compound==this.compound &
$Tissue==this.tissue,"value"]
weijstab4
}
write.csv(Curley.pcs,"PCs-table.csv",row.names=FALSE)
<- httk::fetalpcs
Curley.pcs <- get_cheminfo(
dtxsid.list info="DTXSID",
model="fetal_pbtk",
suppress.messages=TRUE)
suppressWarnings(load_sipes2017())
for (this.chemical in unique(Curley.pcs$DTXSID))
if (this.chemical %in% dtxsid.list)
{<- subset(Curley.pcs,DTXSID==this.chemical)
this.subset <- parameterize_fetal_pbtk(dtxsid=this.chemical,
p fetal_fup_adjustment = FALSE,
suppress.messages=TRUE,
minimum.Funbound.plasma = 1e-16)
<- 7.26
fetal.blood.pH <- p$Fraction_unbound_plasma_fetus
Fup <- parameterize_schmitt(
fetal_schmitt_parms dtxsid=this.chemical,
suppress.messages=TRUE,
minimum.Funbound.plasma = 1e-16)
$plasma.pH <- fetal.blood.pH
fetal_schmitt_parms$Funbound.plasma <- Fup
fetal_schmitt_parms$DTXSID==this.chemical,"Fup"] <- Fup
Curley.pcs[Curley.pcs# httk gives tissue:fup (unbound chemical in plasma) PC's:
<- predict_partitioning_schmitt(
fetal_pcs parameters = fetal_schmitt_parms,
suppress.messages=TRUE,
model="fetal_pbtk",
minimum.Funbound.plasma = 1e-16)
<- predict_partitioning_schmitt(
fetal_pcs.nocal parameters = fetal_schmitt_parms,
regression=FALSE,
suppress.messages=TRUE,
model="fetal_pbtk",
minimum.Funbound.plasma = 1e-16)
<- solve_fetal_pbtk(
out dtxsid = this.chemical,
fetal_fup_adjustment =FALSE,
suppress.messages=TRUE,
minimum.Funbound.plasma = 1e-16)
<- out[dim(out)[1],"Rfblood2plasma"]
Rb2p $DTXSID==this.chemical,"Rb2p"] <- Rb2p
Curley.pcs[Curley.pcs# Convert to tissue:blood PC's:
for (this.tissue in this.subset$Tissue)
if (tolower(this.tissue) %in%
unique(subset(tissue.data,Species=="Human")$Tissue))
{$DTXSID==this.chemical &
Curley.pcs[Curley.pcs$Tissue == this.tissue, "HTTK.pred.t2up"] <-
Curley.pcspaste("K",tolower(this.tissue),"2pu",sep="")]]
fetal_pcs[[$DTXSID==this.chemical &
Curley.pcs[Curley.pcs$Tissue == this.tissue, "HTTK.pred.nocal.t2up"] <-
Curley.pcspaste("K",tolower(this.tissue),"2pu",sep="")]]
fetal_pcs.nocal[[$DTXSID==this.chemical &
Curley.pcs[Curley.pcs$Tissue == this.tissue, "HTTK.pred"] <-
Curley.pcspaste("K",tolower(this.tissue),"2pu",sep="")]]*Fup/Rb2p
fetal_pcs[[$DTXSID==this.chemical &
Curley.pcs[Curley.pcs$Tissue == this.tissue, "HTTK.pred.nocal"] <-
Curley.pcspaste("K",tolower(this.tissue),"2pu",sep="")]]*Fup/Rb2p
fetal_pcs.nocal[[else {
} print(this.tissue)
} else print(this.chemical)
} reset_httk()
cat(paste(
"For the two placental observations (",
signif(subset(Curley.pcs,Compound=="Bisphenol A" & Tissue=="Placenta")[,"PC"],2),
" for Bisphenol A and ",
signif(subset(Curley.pcs,Compound=="Daidzein" & Tissue=="Placenta")[,"PC"],2),
" for Diadzen) the predictions were ",
signif(subset(Curley.pcs,Compound=="Bisphenol A" & Tissue=="Placenta")[,"HTTK.pred"],2),
" and ",
signif(subset(Curley.pcs,Compound=="Daidzein" & Tissue=="Placenta")[,"HTTK.pred"],2),
", respectively.\n",sep=""))
<- ggplot(data=subset(Curley.pcs,!is.na(HTTK.pred.nocal))) +
FigFa geom_point(size=2,aes(
y=Weijs2013,
x=HTTK.pred,
shape=Compound,
color=Compound)) +
geom_point(size=5,aes(
y=PC,
x=HTTK.pred,
shape=Compound,
color=Compound)) +
geom_abline(slope=1, intercept=0, size=2) +
geom_abline(slope=1, intercept=1, linetype=3, size=2) +
geom_abline(slope=1, intercept=-1, linetype=3, size=2) +
scale_shape_manual(values=rep(c(15,16,17,18),4))+
xlab("Predicted Tissue:Blood Partition Coefificent") +
ylab("Observed") +
scale_x_log10(label=scientific_10,limits=c(10^-1,10^2)) +
scale_y_log10(label=scientific_10,limits=c(10^-1,10^4)) +
theme_bw() +
theme(legend.position="bottom")+
theme( text = element_text(size=28))+
theme(legend.text=element_text(size=12))+
theme(legend.title = element_blank())+
guides(shape=guide_legend(nrow=3,byrow=TRUE))
print(FigFa)
<- lm(data=Curley.pcs,log10(PC)~log10(HTTK.pred))
fitFa RMSE(fitFa)
<- lm(data=Curley.pcs,log10(PC)~log10(HTTK.pred.nocal))
fitFb RMSE(fitFb)
<- ggplot(data=subset(Curley.pcs,!is.na(HTTK.pred))) +
FigFb geom_point(size=2,aes(
y=Weijs2013,
x=HTTK.pred,
shape=Tissue,
color=Tissue)) +
geom_point(size=5, aes(
y=PC,
x=HTTK.pred,
shape=Tissue,
color=Tissue)) +
geom_abline(slope=1, intercept=0, size=2) +
geom_abline(slope=1, intercept=1, linetype=3, size=2) +
geom_abline(slope=1, intercept=-1, linetype=3, size=2) +
scale_shape_manual(values=rep(c(15,16,17,18),4))+
xlab("Predicted Tissue:Blood Partition Coefificent") +
ylab("Observed") +
scale_x_log10(label=scientific_10,limits=c(10^-1,10^2)) +
scale_y_log10(label=scientific_10,limits=c(10^-1,10^4)) +
theme_bw() +
theme(legend.position="bottom")+
theme( text = element_text(size=28))+
theme(legend.text=element_text(size=20))+
theme(legend.title = element_blank())+
guides(shape=guide_legend(nrow=3,byrow=TRUE))
print(FigFb)
<- as.data.frame(read_excel("PartitionCoefficients.xlsx"))
pksim.pcs dim(pksim.pcs)
for (this.id in unique(pksim.pcs$DTXSID))
{<- predict_partitioning_schmitt(dtxsid=this.id,
httk.PCs suppress.messages = TRUE)
<-
p parameterize_fetal_pbtk(dtxsid=this.id,
suppress.messages = TRUE)
"Kplacenta2pu"]] <- p[["Kplacenta2pu"]]
httk.PCs[["Fup"]] <- p[["Funbound.plasma"]]
httk.PCs[[lapply(httk.PCs,as.numeric)
<- subset(pksim.pcs,DTXSID==this.id)
this.subset for (this.tissue in unique(this.subset$Tissue))
{if (any(regexpr(tolower(this.tissue),names(httk.PCs))!=-1))
{$DTXSID==this.id & pksim.pcs$Tissue==this.tissue,
pksim.pcs[pksim.pcs"HTTK.pred"] <-
regexpr(tolower(this.tissue),names(httk.PCs))!=-1][[1]]*
httk.PCs["Fup"]][[1]]
httk.PCs[[
}
}
}colnames(pksim.pcs)[colnames(pksim.pcs) ==
"Tissue-to-plasma partition coefficient"] <- "PKSim.pred"
colnames(pksim.pcs)[colnames(pksim.pcs) ==
"Method for calculating tissue-to-plasma partition coefficients"] <-
"Method"
"Method"] <- as.factor(pksim.pcs[,"Method"])
pksim.pcs[,"Drug"] <- as.factor(pksim.pcs[,"Drug"])
pksim.pcs[,"Tissue"] <- as.factor(pksim.pcs[,"Tissue"])
pksim.pcs[,
"PKSim.pred"] <- as.numeric(
pksim.pcs[,"PKSim.pred"]) pksim.pcs[,
<- httk::pksim.pcs
pksim.pcs
<- lm(data=pksim.pcs,
pksim.fit1 log10(PKSim.pred)~log10(HTTK.pred))
summary(pksim.fit1)
<- lm(data=pksim.pcs,
pksim.fit2 log10(PKSim.pred)~log10(HTTK.pred)+
+Tissue+Method)
Drugsummary(pksim.fit2)
#Wangchems <- read_excel("Wang2018.xlsx",sheet=3,skip=2)
<- httk::wang2018
Wangchems <- Wangchems$CASRN[Wangchems$CASRN %in%
maternal.list get_cheminfo(model="fetal_pbtk",
suppress.messages=TRUE)]
<- subset(chem.physical_and_invitro.data,logHenry < -4.5)$CAS
nonvols <- chem.physical_and_invitro.data$CAS[
nonfluoros regexpr("fluoro",tolower(chem.physical_and_invitro.data$Compound))==-1]
<- maternal.list[maternal.list %in% intersect(nonvols,nonfluoros)] maternal.list
For the plot we need a data frame with a column “Ratio.pred” broken down by the different contributions to uncertainty being plotted (columne “Uncertainty”). We build this plot by making multiple versions of pred.table and concatonating them together at the end.
<- subset(get_cheminfo(
pred.table1 info=c("Compound","CAS","DTXSID","logP","pka_accept","pka_donor"),
model="fetal_pbtk"),
%in% maternal.list,
CAS suppress.messages=TRUE)
$Compound <- gsub("\"","",pred.table1$Compound)
pred.table1
for (this.cas in maternal.list)
{<- subset(get_cheminfo(
Fup info="all",
suppress.messages=TRUE),
==this.cas)$Human.Funbound.plasma
CAS# Check if Fup is provided as a distribution:
if (regexpr(",",Fup)!=-1)
{if (as.numeric(strsplit(Fup,",")[[1]][1])==0 |
as.numeric(strsplit(Fup,",")[[1]][3])>0.9 &
(as.numeric(strsplit(Fup,",")[[1]][2])<0.11))
{<- TRUE
skip else skip <- FALSE
} <- as.numeric(strsplit(Fup,",")[[1]][3])
Fup.upper <- as.numeric(strsplit(Fup,",")[[1]][1])
Fup # These results are actually from a Bayesian posterior, but we can approximate that
# they are normally distributed about the median to estimate a standard deviation:
<- (Fup.upper - Fup)/1.96
Fup.sigma # If it's not a distribution use defaults (see Wambaugh et al. 2019)
else if (as.numeric(Fup)== 0)
}
{<- TRUE
skip else {
} <- FALSE
skip <- as.numeric(Fup)
Fup <- Fup*0.4
Fup.sigma <- min(1,(1+1.96*0.4)*Fup)
Fup.upper
}
# Only run the simulation if we have the necessary parameters:
if (!skip)
{ print(this.cas)
<- solve_fetal_pbtk(
out chem.cas=this.cas,
dose=0,
daily.dose=1,
doses.per.day=3,
fetal_fup_adjustenment=TRUE,
suppress.messages=TRUE)
<- which(out[,"time"]>279)
last.row <- last.row[!duplicated(out[last.row,"time"])]
last.row $CAS==this.cas,"fup"] <- signif(Fup,3)
pred.table1[pred.table1$CAS==this.cas,"fup.sigma"] <- signif(Fup.sigma,3)
pred.table1[pred.table1$CAS==this.cas,"fup.upper"] <- signif(Fup.upper,3)
pred.table1[pred.table1$CAS==this.cas,"Ratio.pred"] <-
pred.table1[pred.table1signif(mean(out[last.row,"Cfplasma"])/mean(out[last.row,"Cplasma"]),3)
} }
<- pred.table1
PC.table colnames(PC.table)[colnames(PC.table)=="Ratio.pred"] <- "R.plasma.FtoM"
$Uncertainty <- "Predicted F:M Plasma Ratio" pred.table1
<- pred.table1
pred.table3 $Uncertainty <- "Plasma Error (Fig. 4)"
pred.table3<- RMSE(fit2sub)
empirical.error for (this.cas in maternal.list)
{
$CAS==this.cas,"Ratio.pred"] <- signif(
pred.table3[pred.table31/((1/pred.table1[pred.table3$CAS==this.cas,"Ratio.pred"])*
1-1.96*empirical.error)), 3)
(
}# Update final table for paper:
$RMSE <- signif(RMSE(fit2sub),3)
PC.table$R.plasma.FtoM.upper <- pred.table3$Ratio.pred PC.table
<- pred.table1
pred.table4 $Uncertainty <- "Fetal Brain Partitioning"
pred.table4for (this.cas in maternal.list)
{print(this.cas)
<- parameterize_fetal_pbtk(chem.cas=this.cas,
p fetal_fup_adjustment=TRUE,
suppress.messages=TRUE)
<- p$Kfbrain2pu
Kbrain2pu <- pred.table4[pred.table4$CAS==this.cas,"fup"]
fup $CAS==this.cas,"Ratio.pred"] <- signif(
pred.table4[pred.table4$CAS==this.cas,"R.plasma.FtoM"]*
PC.table[PC.table* fup, 3)
Kbrain2pu $CAS==this.cas,"Kbrain2pu"] <- Kbrain2pu
PC.table[PC.table$CAS==this.cas,"R.brain.FtoM"] <-
PC.table[PC.table$CAS==this.cas,"Ratio.pred"]
pred.table4[pred.table4 }
<- pred.table1
pred.table5 $Uncertainty <- "Brain Partitioning Error (Pearce et al., 2017)"
pred.table5for (this.cas in maternal.list)
{ <- parameterize_fetal_pbtk(chem.cas=this.cas,
p fetal_fup_adjustment=TRUE,
suppress.messages=TRUE)
<- p$Kfbrain2pu
Kbrain2pu
<- pred.table5[pred.table5$CAS==this.cas,"fup"]
fup <- pred.table5[pred.table5$CAS==this.cas,"fup.sigma"]
sigma.fup <- 1/PC.table[PC.table$CAS==this.cas,"R.plasma.FtoM"]
Rmatfet <- Kbrain2pu * fup / Rmatfet
Rbrain2matblood
# From Pearce et al. (2017) PC paper:
<- 0.647
sigma.logKbrain <- signif(10^(log10(Kbrain2pu)+1.96*sigma.logKbrain),3)
Kbrain2pu.upper
<- PC.table[PC.table$CAS==this.cas,"RMSE"]
error.Rmatfet <- Rbrain2matblood *
sigma.Rbrain2matblood log(10)^2*sigma.logKbrain^2 +
(^2/fup^2 +
sigma.fup^2/Rmatfet^2)^(1/2)
error.Rmatfet<- Rbrain2matblood *
Rbrain2matblood.upper 1 + 1.96*(log(10)^2*sigma.logKbrain^2 +
(^2/fup^2 +
sigma.fup^2/Rmatfet^2)^(1/2))
error.Rmatfet$CAS==this.cas,"Ratio.pred"] <-
pred.table5[pred.table5signif(Rbrain2matblood.upper,3)
$CAS==this.cas,"sigma.logKbrain"] <-
PC.table[PC.tablesignif(sigma.logKbrain, 3)
$CAS==this.cas,"Kbrain2pu.upper"] <-
PC.table[PC.tablesignif(Kbrain2pu.upper, 3)
$CAS==this.cas,"sigma.Rbrain2matblood"] <-
PC.table[PC.tablesignif(sigma.Rbrain2matblood, 3)
$CAS==this.cas,"R.brain.FtoM.upper"] <-
PC.table[PC.table$CAS==this.cas,"Ratio.pred"]
pred.table5[pred.table5 }
<- pred.table5$Compound[order(pred.table5$Ratio.pred)]
pred.levels
<- rbind(
pred.table
pred.table1,# pred.table2,
pred.table3,
pred.table4,
pred.table5)$Compound <- factor(pred.table$Compound,
pred.tablelevels = pred.levels)
$Uncertainty <- factor(pred.table$Uncertainty,
pred.tablelevels = c(pred.table1[1,"Uncertainty"],
# pred.table2[1,"Uncertainty"],
1,"Uncertainty"],
pred.table3[1,"Uncertainty"],
pred.table4[1,"Uncertainty"])) pred.table5[
#Wang 2018 confirmed 6 chemical identities:
<- c(
confirmed.chemicals "2,4-Di-tert-butylphenol",
"2,4-Dinitrophenol",
"Pyrocatechol",
"2'-Hydroxyacetophenone",
"3,5-Di-tert-butylsalicylic acid",
"4-Hydroxycoumarin"
)<- c(
confirmed.chemicals "96-76-4",
"19715-19-6",
"51-28-5",
"120-80-9",
"118-93-4",
"1076-38-6")
<- ggplot(data=pred.table) +
FigG geom_point(aes(
x=Ratio.pred,
y=Compound,
color = Uncertainty,
shape = Uncertainty),
size=3) +
scale_shape_manual(values=c(15, 16,2, 23, 0, 1, 17, 5, 6))+
scale_x_log10(limits=c(10^-2,10^3),label=scientific_10)+
ylab(expression(paste(
"Chemicals Found in Maternal Plasma by Wang ",italic("et al.")," (2018)"))) +
xlab("Predicted Ratio to Maternal Plasma") +
theme_bw() +
# theme(legend.position="bottom")+
theme( text = element_text(size=14))+
theme(legend.text=element_text(size=10))#+
# guides(color=guide_legend(nrow=4,byrow=TRUE))+
#guides(shape=guide_legend(nrow=4,byrow=TRUE))
#+
# theme(legend.justification = c(0, 0), legend.position = c(0, 0))
print(FigG)
for (this.col in 7:14)
<- signif(PC.table[,this.col],3)
PC.table[,this.col]
<- PC.table[order(PC.table$R.brain.FtoM.upper,decreasing=TRUE),]
PC.table
for (this.row in 1:dim(PC.table)[1])
{<- calc_ionization(
out pH=7.26,
pKa_Donor=PC.table[this.row,"pKa_Donor"],
pKa_Accept=PC.table[this.row,"pKa_Accept"])
if (out$fraction_neutral>0.9) PC.table[this.row,"Charge_726"] <- "Neutral"
else if (out$fraction_positive>0.1) PC.table[this.row,"Charge_726"] <-
paste(signif(out$fraction_positive*100,2),"% Positive",sep="")
else if (out$fraction_negative>0.1) PC.table[this.row,"Charge_726"] <-
paste(signif(out$fraction_negative*100,2),"% Negative",sep="")
else if (out$fraction_zwitter>0.1) PC.table[this.row,"Charge_726"] <-
paste(signif(out$fraction_zwitter*100,2),"% Zwitterion",sep="")
}
<- PC.table[,c(
PC.table "Compound",
"CAS",
"DTXSID",
"logP",
"Charge_726",
"R.plasma.FtoM",
"RMSE",
"R.plasma.FtoM.upper",
"Kbrain2pu",
"fup",
"R.brain.FtoM",
"Kbrain2pu.upper",
"R.brain.FtoM.upper")]
write.csv(PC.table,
file="WangTable.txt",
row.names=FALSE)
<- lm(R.brain.FtoM.upper~Kbrain2pu.upper,data=PC.table)
MFbrainfit summary(MFbrainfit)
cat(paste("As expected, the predicted fetal brain to maternal blood ratio was strongly correlated with the predicted brain partition coefficient (R2 = ",
signif(summary(MFbrainfit)$adj.r.square,2),
", p-value ",
signif(summary(MFbrainfit)$coefficients[2,4],2),
"). However, the PBTK simulation impacted the plasma and tissue concentrations such that ",
dim(subset(PC.table, rank(R.brain.FtoM.upper) < rank(Kbrain2pu.upper)))[1],
" chemicals were ranked higher than they would have been using partitioning alone.",
sep=""))
<- subset(get_cheminfo(
pred.table1.nofup info=c("Compound","CAS","DTXSID","logP","pka_accept","pka_donor"),
model="fetal_pbtk",
suppress.messages=TRUE),
%in% maternal.list)
CAS $Compound <- gsub("\"","",pred.table1.nofup$Compound)
pred.table1.nofup
for (this.cas in maternal.list)
{<- subset(get_cheminfo(
Fup info="all",
suppress.messages=TRUE),
==this.cas)$Human.Funbound.plasma
CAS# Check if Fup is provided as a distribution:
if (regexpr(",",Fup)!=-1)
{if (as.numeric(strsplit(Fup,",")[[1]][1])==0 |
as.numeric(strsplit(Fup,",")[[1]][3])>0.9 &
(as.numeric(strsplit(Fup,",")[[1]][2])<0.11))
{<- TRUE
skip else skip <- FALSE
} <- as.numeric(strsplit(Fup,",")[[1]][3])
Fup.upper <- as.numeric(strsplit(Fup,",")[[1]][1])
Fup # These results are actually from a Bayesian posterior, but we can approximate that
# they are normally distributed about the median to estimate a standard deviation:
<- (Fup.upper - Fup)/1.96
Fup.sigma # If it's not a distribution use defaults (see Wambaugh et al. 2019)
else if (as.numeric(Fup)== 0)
}
{<- TRUE
skip else {
} <- FALSE
skip <- as.numeric(Fup)
Fup <- Fup*0.4
Fup.sigma <- min(1,(1+1.96*0.4)*Fup)
Fup.upper
}
# Only run the simulation if we have the necessary parameters:
if (!skip)
{ <- solve_fetal_pbtk(
out chem.cas=this.cas,
dose=0,
daily.dose=1,
doses.per.day=3,
fetal_fup_adjustenment=FALSE,
suppress.messages=TRUE)
<- which(out[,"time"]>279)
last.row <- last.row[!duplicated(out[last.row,"time"])]
last.row $CAS==this.cas,"fup"] <- signif(Fup,3)
pred.table1.nofup[pred.table1.nofup$CAS==this.cas,"fup.sigma"] <- signif(Fup.sigma,3)
pred.table1.nofup[pred.table1.nofup$CAS==this.cas,"fup.upper"] <- signif(Fup.upper,3)
pred.table1.nofup[pred.table1.nofup$CAS==this.cas,"Ratio.pred"] <-
pred.table1.nofup[pred.table1.nofupsignif(mean(out[last.row,"Cfplasma"])/mean(out[last.row,"Cplasma"]),3)
} }
<- pred.table1.nofup
PC.table.nofup colnames(PC.table.nofup)[colnames(PC.table.nofup)=="Ratio.pred"] <- "R.plasma.FtoM"
$Uncertainty <- "Predicted F:M Plasma Ratio" pred.table1.nofup
<- pred.table1.nofup
pred.table3.nofup $Uncertainty <- "Plasma Error (Fig. 4)"
pred.table3.nofup<- RMSE(fit2sub)
empirical.error for (this.cas in maternal.list)
{
$CAS==this.cas,"Ratio.pred"] <- signif(
pred.table3.nofup[pred.table3.nofup1/((1/pred.table1.nofup[pred.table3.nofup$CAS==this.cas,"Ratio.pred"])*
1-1.96*empirical.error)), 3)
(
}# Update final table for paper:
$RMSE <- signif(RMSE(fit2sub),3)
PC.table.nofup$R.plasma.FtoM.upper <- pred.table3.nofup$Ratio.pred PC.table.nofup
<- pred.table1.nofup
pred.table4.nofup $Uncertainty <- "Fetal Brain Partitioning"
pred.table4.nofupfor (this.cas in maternal.list)
{<- parameterize_fetal_pbtk(chem.cas=this.cas,
p fetal_fup_adjustment=FALSE,
suppress.messages=TRUE)
<- p$Kfbrain2pu
Kbrain2pu <- pred.table4.nofup[pred.table4.nofup$CAS==this.cas,"fup"]
fup $CAS==this.cas,"Ratio.pred"] <- signif(
pred.table4.nofup[pred.table4.nofup$CAS==this.cas,"R.plasma.FtoM"]*
PC.table.nofup[PC.table.nofup* fup, 3)
Kbrain2pu $CAS==this.cas,"Kbrain2pu"] <- Kbrain2pu
PC.table.nofup[PC.table.nofup$CAS==this.cas,"R.brain.FtoM"] <-
PC.table.nofup[PC.table.nofup$CAS==this.cas,"Ratio.pred"]
pred.table4.nofup[pred.table4.nofup }
<- pred.table1.nofup
pred.table5.nofup $Uncertainty <- "Brain Partitioning Error (Pearce et al., 2017)"
pred.table5.nofupfor (this.cas in maternal.list)
{ <- parameterize_fetal_pbtk(chem.cas=this.cas,
p fetal_fup_adjustment=FALSE,
suppress.messages=TRUE)
<- p$Kfbrain2pu
Kbrain2pu
<- pred.table5.nofup[pred.table5.nofup$CAS==this.cas,"fup"]
fup <- pred.table5.nofup[pred.table5.nofup$CAS==this.cas,"fup.sigma"]
sigma.fup <- 1/PC.table[PC.table.nofup$CAS==this.cas,"R.plasma.FtoM"]
Rmatfet <- Kbrain2pu * fup / Rmatfet
Rbrain2matblood
# From Pearce et al. (2017) PC paper:
<- 0.647
sigma.logKbrain <- signif(10^(log10(Kbrain2pu)+1.96*sigma.logKbrain),3)
Kbrain2pu.upper
<- PC.table.nofup [PC.table.nofup $CAS==this.cas,"RMSE"]
error.Rmatfet <- Rbrain2matblood *
sigma.Rbrain2matblood log(10)^2*sigma.logKbrain^2 +
(^2/fup^2 +
sigma.fup^2/Rmatfet^2)^(1/2)
error.Rmatfet<- Rbrain2matblood *
Rbrain2matblood.upper 1 + 1.96*(log(10)^2*sigma.logKbrain^2 +
(^2/fup^2 +
sigma.fup^2/Rmatfet^2)^(1/2))
error.Rmatfet$CAS==this.cas,"Ratio.pred"] <-
pred.table5.nofup [pred.table5.nofup signif(Rbrain2matblood.upper,3)
$CAS==this.cas,"sigma.logKbrain"] <-
PC.table.nofup [PC.table.nofup signif(sigma.logKbrain, 3)
$CAS==this.cas,"Kbrain2pu.upper"] <-
PC.table.nofup [PC.table.nofup signif(Kbrain2pu.upper, 3)
$CAS==this.cas,"sigma.Rbrain2matblood"] <-
PC.table.nofup [PC.table.nofup signif(sigma.Rbrain2matblood, 3)
$CAS==this.cas,"R.brain.FtoM.upper"] <-
PC.table.nofup [PC.table.nofup $CAS==this.cas,"Ratio.pred"]
pred.table5.nofup [pred.table5.nofup }
<- merge(PC.table,PC.table.nofup,by=c("Compound","CAS","DTXSID"))
case.study.fup.correct.table
<- lm(R.brain.FtoM.upper.x~R.brain.FtoM.upper.y,
MFbrainfit.fup data=case.study.fup.correct.table)
summary(MFbrainfit.fup)
cat(paste("The predictions for fetal brain to maternal blood ratio with or without the fetal plasma binding correction (Eqn. 1) were strongly correlated (R2 = ",
signif(summary(MFbrainfit.fup)$adj.r.square,2),
"). There were ",
dim(subset(case.study.fup.correct.table,
rank(R.brain.FtoM.upper.x) > rank(R.brain.FtoM.upper.y)))[1],
" chemicals that were ranked higher with the correction than without, with an average increase of ",
signif(mean(
$R.brain.FtoM.upper.y /
case.study.fup.correct.table$R.brain.FtoM.upper.x),2),
case.study.fup.correct.table" times when the plasma binding change was included.\n",
sep=""))
The next two figures take a long time to generate and so are disabled by default.
The fetal fraction unbound (f_{up}^f i) is calculated from the maternal fraction unbound and the serum protein concentration ratio in infants vs. mothers based on Equation 6 of McNamara et al., 2019,
\[ f_{up}^f =(f_{up}^m )/(f_{up}^m +(P^f /P^m )*(1-f_{up}^m ) ) \]
in which the maternal fraction unbound, \(f_{up}^m\), is assumed to be equal to the in vitro measured value for fraction unbound in plasma, and the ratio of protein concentrations \(P^f /P^m\) depends on the identity of the dominant binding protein for the chemical (assumed to be either albumin or AAG). Lacking data to model the gestational kinetics of albumin and AAG concentrations, we used the concentrations at birth ([McNamara et al., 2019] (http://dx.doi.org/10.1208/ps040104)) to calculate a constant fetal \(f_{up}\), using \(P^f/P^m =0.777\) for albumin and \(P^f/P^m = 0.456\) for AAG (McNamara et al., 2019). We determine the charge state of a compound separately for maternal and fetal plasma as a function of plasma pH (7.38 for maternal and 7.28 for fetal ([K.H. Lee, 1972] (http://dx.doi.org/10.1136/pgmj.48.561.405)) and chemical-specific predictions for ionization affinity (that is, pKa ([Strope et al., 2018] (http://dx.doi.org/10.1016/j.scitotenv.2017.09.033)) using the “httk” function “calc_ionization” ([Pearce et al., 2017] (http://dx.doi.org/10.1007/s10928-017-9548-7)). If the fraction of a chemical that is predicted to be in positive ionic form is greater than 50%, we treat the chemical as a base (which is in its conjugate acid form) and use only the maternal-to-infant ratio of AAG concentrations. Otherwise, we assume the chemical is neutral or an acid and use the ratio of albumin concentrations.
<- NULL
fup.table <- get_cheminfo(
all.chems model="fetal_pbtk",
info="all",
suppress.messages=TRUE)
# Get rid of median fup 0:
<- subset(all.chems,
all.chems as.numeric(unlist(lapply(strsplit(
$Human.Funbound.plasma,","),function(x) x[[1]])))!=0)
all.chemsfor (this.chem in all.chems[,"CAS"])
{<- parameterize_fetal_pbtk(chem.cas=this.chem,suppress.messages = TRUE)
temp <- calc_ionization(
state pH=7.26,
pKa_Donor=temp$pKa_Donor,
pKa_Accept=temp$pKa_Accept)
if (state$fraction_positive > 0.5) this.charge <- "Positive"
else if (state$fraction_negative > 0.5) this.charge <- "Negative"
else this.charge <- "Neutral"
<- data.frame(DTXSID=all.chems[all.chems[,"CAS"]==this.chem,"DTXSID"],
this.row Compound=all.chems[all.chems[,"CAS"]==this.chem,"Compound"],
CAS=this.chem,
Fup.Mat.Pred = temp$Funbound.plasma,
Fup.Neo.Pred = temp$Fraction_unbound_plasma_fetus,
Charge = this.charge
)<- rbind(fup.table,this.row)
fup.table
}
$Charge=="Positive","Charge"] <- paste("Positive (n=",
fup.table[fup.tablesum(fup.table$Charge=="Positive"),
")",sep="")
$Charge=="Negative","Charge"] <- paste("Negative (n=",
fup.table[fup.tablesum(fup.table$Charge=="Negative"),
")",sep="")
$Charge=="Neutral","Charge"] <- paste("Neutral (n=",
fup.table[fup.tablesum(fup.table$Charge=="Neutral"),
")",sep="")
<- ggplot(data=fup.table) +
FigA geom_point(alpha=0.25, aes(
x=Fup.Mat.Pred,
y=Fup.Neo.Pred,
shape=Charge,
color=Charge),
size=3) +
geom_abline(slope=1, intercept=0) +
ylab(expression(paste("Adjusted Neonate ",f[up]))) +
xlab(expression(paste(italic("In vitro")," Measured Adult ",f[up]))) +
scale_x_log10(label=scientific_10) +
scale_y_log10(label=scientific_10) +
theme_bw() +
theme( text = element_text(size=14))
print(FigA)
<- sort(unique(c(seq(13 * 7, 40 * 7, 0.25),seq(278,280,.1))))
times
<- NULL
MFratio.pred <- get_cheminfo(
all.chems model="fetal_pbtk",
info=c("Compound","DTXSID","CAS","Funbound.plasma"),
suppress.messages=TRUE)
for (this.cas in all.chems$CAS)
if ((this.cas %in% nonvols) &
!(this.cas %in% fluoros))
{<- all.chems[all.chems$CAS==this.cas,"DTXSID"]
this.id <- subset(all.chems,DTXSID==this.id)$Human.Funbound.plasma
Fup if (regexpr(",",Fup)!=-1)
{if (as.numeric(strsplit(Fup,",")[[1]][1])==0 |
as.numeric(strsplit(Fup,",")[[1]][3])>0.9 &
(as.numeric(strsplit(Fup,",")[[1]][2])<0.1))
{<- TRUE
skip else skip <- FALSE
} else if (Fup== 0)
}
{<- TRUE
skip else skip <- FALSE
}
if (!skip)
{ <- parameterize_fetal_pbtk(dtxsid=this.id,
p fetal_fup_adjustment =TRUE,
suppress.messages=TRUE)
<- solve_fetal_pbtk(
out parameters=p,
dose=0,
times=times,
daily.dose=1,
doses.per.day=3,
output.units = "uM",
suppress.messages=TRUE)
<- which(out[,"time"]>279)
last.row <- last.row[!duplicated(out[last.row,"time"])]
last.row <- data.frame(
new.row Chemical = all.chems[all.chems$DTXSID==this.id,"Compound"],
DTXSID = this.id,
Mat.pred = mean(out[last.row,"Cplasma"]),
Fet.pred = mean(out[last.row,"Cfplasma"]),
MFratio.pred = mean(out[last.row,"Cplasma"])/mean(out[last.row,"Cfplasma"])
)<- rbind(MFratio.pred,new.row)
MFratio.pred
} }
<- ggplot(data=MFratio.pred)+
FigD geom_histogram(binwidth = 0.05,fill="Red",aes(MFratio.pred))+
xlab("Maternal:Fetal Plasma Concentration Ratio") +
ylab("Number of chemicals")+
theme_bw()+
theme( text = element_text(size=14))
print(FigD)
<- MFratio.pred[which(
max.chem $MFratio.pred==max(MFratio.pred$MFratio.pred,na.rm=TRUE)),]
MFratio.pred<- MFratio.pred[which(
min.chem $MFratio.pred==min(MFratio.pred$MFratio.pred,na.rm=TRUE)),]
MFratio.predcat(paste("In Figure X we examine the ratios predicted for the ",
dim(MFratio.pred)[1],
" appropriate (non-volatile or PFAS) chemicals with measured HTTK data.\n",
sep=""))
cat(paste("We observe a median ratio of ",
signif(median(MFratio.pred$MFratio.pred,na.rm=TRUE),3),
", with values ranging from ",
signif(min.chem[,"MFratio.pred"],3),
" for ",
"DTXSID"],
min.chem[," to ",
signif(max.chem[,"MFratio.pred"],3),
" for ",
"DTXSID"],
max.chem[,".\n",sep=""))
# Check out phys-chem > 1.6, < 1:
<- subset(chem.physical_and_invitro.data,DTXSID%in%subset(MFratio.pred,MFratio.pred>1.6)$DTXSID)
highratio
cat(paste("There are",
dim(highratio)[1],
"chemicals with ratios greater than 1.6, indicating a tendency to have higher concentrations"))
# all highly bound
$Compound
highratiosuppressWarnings(apply(highratio,2,function(x) mean(as.numeric(x),na.rm=TRUE)))
<- subset(chem.physical_and_invitro.data,DTXSID%in%subset(MFratio.pred,MFratio.pred<0.9)$DTXSID)
lowratio # No obvious pattern
<- sort(unique(c(seq(13 * 7, 40 * 7, 0.25),seq(278,280,.1))))
times
<- NULL
MFratio.pred.nofup <- get_cheminfo(
all.chems model="fetal_pbtk",
info=c("Compound","DTXSID","CAS","Funbound.plasma"),
suppress.messages=TRUE)
for (this.cas in all.chems$CAS)
if ((this.cas %in% nonvols) &
!(this.cas %in% fluoros))
{<- all.chems[all.chems$CAS==this.cas,"DTXSID"]
this.id <- subset(all.chems,DTXSID==this.id)$Human.Funbound.plasma
Fup if (regexpr(",",Fup)!=-1)
{if (as.numeric(strsplit(Fup,",")[[1]][1])==0 |
as.numeric(strsplit(Fup,",")[[1]][3])>0.9 &
(as.numeric(strsplit(Fup,",")[[1]][2])<0.1))
{<- TRUE
skip else skip <- FALSE
} else if (Fup== 0)
}
{<- TRUE
skip else skip <- FALSE
}
if (!skip)
{ <- parameterize_fetal_pbtk(dtxsid=this.id,
p fetal_fup_adjustment =FALSE,
suppress.messages=TRUE))
<- suppressWarnings(solve_fetal_pbtk(
out parameters=p,
dose=0,
times=times,
daily.dose=1,
doses.per.day=3,
output.units = "uM",
suppress.messages=TRUE)
<- which(out[,"time"]>279)
last.row <- last.row[!duplicated(out[last.row,"time"])]
last.row <- data.frame(
new.row Chemical = all.chems[all.chems$DTXSID==this.id,"Compound"],
DTXSID = this.id,
Mat.pred = mean(out[last.row,"Cplasma"]),
Fet.pred = mean(out[last.row,"Cfplasma"]),
MFratio.pred = mean(out[last.row,"Cplasma"])/mean(out[last.row,"Cfplasma"])
)<- rbind(MFratio.pred.nofup,new.row)
MFratio.pred.nofup }
}
<- ggplot(data=MFratio.pred.nofup)+
FigSupD geom_histogram(binwidth = 0.05,fill="Red",aes(MFratio.pred))+
xlab("Maternal:Fetal Plasma Concentration Ratio (No Fup Corr.)") +
ylab("Number of chemicals")+
theme_bw()+
theme( text = element_text(size=14))
print(FigSupD)
<- MFratio.pred.nofup[which(
max.chem $MFratio.pred==max(MFratio.pred.nofup$MFratio.pred,na.rm=TRUE)),]
MFratio.pred.nofup<- MFratio.pred.nofup[which(
min.chem $MFratio.pred==min(MFratio.pred.nofup$MFratio.pred,na.rm=TRUE)),]
MFratio.pred.nofupcat(paste("In Figure X we examine the ratios predicted for the ",
dim(MFratio.pred)[1],
" appropriate (non-volatile or PFAS) chemicals with measured HTTK data.\n",
sep=""))
cat(paste("We observe a median ratio of ",
signif(median(MFratio.pred.nofup$MFratio.pred,na.rm=TRUE),3),
", with values ranging from ",
signif(min.chem[,"MFratio.pred"],3),
" for ",
"DTXSID"],
min.chem[," to ",
signif(max.chem[,"MFratio.pred"],3),
" for ",
"DTXSID"],
max.chem[,".\n",sep=""))
# Check out phys-chem > 1.6, < 1:
<- subset(chem.physical_and_invitro.data,DTXSID%in%subset(MFratio.pred.nofup,MFratio.pred>1.6)$DTXSID)
highratio
cat(paste("There are",
dim(highratio)[1],
"chemicals with ratios greater than 1.6, indicating a tendency to have higher concentrations"))
# all highly bound
$Compound
highratiosuppressWarnings(apply(highratio,2,function(x) mean(as.numeric(x),na.rm=2)))
<- subset(chem.physical_and_invitro.data,DTXSID%in%subset(MFratio.pred.nofup,MFratio.pred<0.9)$DTXSID)
lowratio # No obvious pattern
<-MFdata
aylward2014 <- TKstats
pregnonpregaucs <- Curley.pcs
fetalpcs <- Wangchems
wang2018
save(aylward2014,pregnonpregaucs,fetalpcs,wang2018,pksim.pcs,
file="Kapraun2022Vignette.RData",version=2)