R Under development (unstable) (2024-12-19 r87451 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # R CMD BATCH --no-timing --no-restore --no-save 3comp_test.R 3comp_test.Rout > > # Get rid of anything in the workspace: > rm(list=ls()) > > library(httk) > > calc_analytic_css(chem.name="bisphenol a",model="3compartment") Plasma concentration returned in uM units. [1] 0.9417 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > calc_analytic_css(chem.cas="80-05-7",model="3compartment") Plasma concentration returned in uM units. [1] 0.9417 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > calc_analytic_css(parameters=parameterize_3comp(chem.cas="80-05-7"),model="3compartment") Plasma concentration returned in uM units. [1] 0.9417 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > calc_analytic_css(chem.name="bisphenol a",model="3compartment",tissue="liver") Plasma concentration for liver returned in uM units. [1] 253.6 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > calc_analytic_css(chem.name="bisphenol a",model="3compartment",tissue="brain") Plasma concentration for brain returned in uM units. [1] 5.496 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > > head(solve_3comp(chem.name="bisphenol a",days=1)) None of the monitored components undergo unit conversions (i.e. conversion factor of 1). AUC is area under the plasma concentration curve in uM*days units with Rblood2plasma = 0.795. The model outputs are provided in the following units: umol: Aintestine, Atubules, Ametabolized uM: Cliver, Csyscomp, Cplasma uM*days: AUC time Aintestine Cliver Csyscomp Cplasma Atubules Ametabolized [1,] 0.0000 197.5 0.000000 0.000000 0.000000 0.000000 0.000000 [2,] 0.0001 197.3 0.000316 0.000000 0.000000 0.000000 0.000003 [3,] 0.0104 180.0 0.314600 0.007397 0.009306 0.000141 0.440700 [4,] 0.0208 164.1 0.477300 0.025240 0.031750 0.001045 1.530000 [5,] 0.0312 149.6 0.546700 0.047210 0.059390 0.003111 2.916000 [6,] 0.0416 136.3 0.569200 0.070130 0.088220 0.006474 4.418000 AUC [1,] 0.000000 [2,] 0.000000 [3,] 0.000026 [4,] 0.000190 [5,] 0.000564 [6,] 0.001175 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > head(solve_3comp(chem.cas="80-05-7",days=1)) None of the monitored components undergo unit conversions (i.e. conversion factor of 1). AUC is area under the plasma concentration curve in uM*days units with Rblood2plasma = 0.795. The model outputs are provided in the following units: umol: Aintestine, Atubules, Ametabolized uM: Cliver, Csyscomp, Cplasma uM*days: AUC time Aintestine Cliver Csyscomp Cplasma Atubules Ametabolized [1,] 0.0000 197.5 0.000000 0.000000 0.000000 0.000000 0.000000 [2,] 0.0001 197.3 0.000316 0.000000 0.000000 0.000000 0.000003 [3,] 0.0104 180.0 0.314600 0.007397 0.009306 0.000141 0.440700 [4,] 0.0208 164.1 0.477300 0.025240 0.031750 0.001045 1.530000 [5,] 0.0312 149.6 0.546700 0.047210 0.059390 0.003111 2.916000 [6,] 0.0416 136.3 0.569200 0.070130 0.088220 0.006474 4.418000 AUC [1,] 0.000000 [2,] 0.000000 [3,] 0.000026 [4,] 0.000190 [5,] 0.000564 [6,] 0.001175 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > head(solve_3comp(parameters=parameterize_3comp(chem.cas="80-05-7"),days=1)) None of the monitored components undergo unit conversions (i.e. conversion factor of 1). AUC is area under the plasma concentration curve in uM*days units with Rblood2plasma = 0.795. The model outputs are provided in the following units: umol: Aintestine, Atubules, Ametabolized uM: Cliver, Csyscomp, Cplasma uM*days: AUC time Aintestine Cliver Csyscomp Cplasma Atubules Ametabolized [1,] 0.0000 197.5 0.000000 0.000000 0.000000 0.000000 0.000000 [2,] 0.0001 197.3 0.000316 0.000000 0.000000 0.000000 0.000003 [3,] 0.0104 180.0 0.314600 0.007397 0.009306 0.000141 0.440700 [4,] 0.0208 164.1 0.477300 0.025240 0.031750 0.001045 1.530000 [5,] 0.0312 149.6 0.546700 0.047210 0.059390 0.003111 2.916000 [6,] 0.0416 136.3 0.569200 0.070130 0.088220 0.006474 4.418000 AUC [1,] 0.000000 [2,] 0.000000 [3,] 0.000026 [4,] 0.000190 [5,] 0.000564 [6,] 0.001175 Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. 7: In solve_model(chem.name = chem.name, chem.cas = chem.cas, dtxsid = dtxsid, : Rblood2plasma not recalculated. Set recalc.blood2plasma to TRUE if desired. 8: In solve_model(chem.name = chem.name, chem.cas = chem.cas, dtxsid = dtxsid, : Clearance not recalculated. Set recalc.clearance to TRUE if desired. > > #Test that the input daily.dose and doses.per.day are all that goes through, > #excluding any default dosing. We want any specified dosing to take the place > #of the default, not add to it. > > #first get BW param for 3 comp model: > BW = parameterize_3comp(chem.name = 'bisphenol a')[['BW']] Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > #and get MW of bisphenol a for checking units > MW = get_physchem_param(param = "MW",chem.name = "bisphenol a") > #record intended default dosing in solve_model when no other dosing specified: > default_initial_dose_target_unscaled = 1 #mg/kg BW > initial_default_dose_target = default_initial_dose_target_unscaled* + BW/(MW*10^-3) #factor of 10^-3 to convert > #from g/mol to mg/umol, yielding a dose target in umol > head(initial_default_dose_target) [1] 306.6141 > > out_default_dosing = solve_3comp(chem.name = "bisphenol a",days=2) None of the monitored components undergo unit conversions (i.e. conversion factor of 1). AUC is area under the plasma concentration curve in uM*days units with Rblood2plasma = 0.795. The model outputs are provided in the following units: umol: Aintestine, Atubules, Ametabolized uM: Cliver, Csyscomp, Cplasma uM*days: AUC Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > #The following two initial dose metrics should be the same, and the same as > #the initial_default_dose_target in turn. > initial_default_dose = sum(out_default_dosing[1,]) > head(initial_default_dose) [1] 197.5 > initial_default_dose_intestine = out_default_dosing[1,"Aintestine"] > head(initial_default_dose_intestine) Aintestine 197.5 > > out_nondefault_dosing = solve_3comp(chem.name = "bisphenol a", + daily.dose =3,doses.per.day = 5, + days=2) None of the monitored components undergo unit conversions (i.e. conversion factor of 1). AUC is area under the plasma concentration curve in uM*days units with Rblood2plasma = 0.795. The model outputs are provided in the following units: umol: Aintestine, Atubules, Ametabolized uM: Cliver, Csyscomp, Cplasma uM*days: AUC Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > #so, the dose target of what should appear at time zero in the intestine is: > initial_nondefault_dose_target = 3/5*BW/(MW*10^-3) > head(initial_nondefault_dose_target) [1] 183.9685 > > #the following two dose metrics should also be the same: > initial_nondefault_dose = sum(out_nondefault_dosing[2,]) #Use second row because > #it looks like eventdata only gets registered in the output after time zero. > head(initial_nondefault_dose) [1] 118.4003 > initial_nondefault_dose_intestine = out_nondefault_dosing[2,"Aintestine"] > head(initial_nondefault_dose_intestine) Aintestine 118.4 > > p <- parameterize_3comp(chem.name="Aminopterin")[sort(names(parameterize_3comp(chem.name="Aminopterin")))] There were 16 warnings (use warnings() to see them) > # Try to standardize order of variable names > for (this.param in names(p)[order(toupper(names(p)))]) cat(paste(this.param,": ",p[[this.param]],"\r\n",sep="")) BW: 70 Caco2.Pab: 1.6 Caco2.Pab.dist: NA Clint: 0 Clint.dist: NA Clmetabolismc: 0 Fabsgut: 0.6448 Fhep.assay.correction: 0.9561 Funbound.plasma: 0.747 Funbound.plasma.adjustment: 0.996 Funbound.plasma.dist: NA hematocrit: 0.44 Kgut2pu: 1.68 kgutabs: 0.3711 Kliver2pu: 3.803 Krbc2pu: 0.8576 Krest2pu: 0.9856 liver.density: 1.05 MA: 19 million.cells.per.gliver: 110 MW: 440.4 pKa_Accept: 8.09 pKa_Donor: 2.81 Pow: 0.8903 Qcardiacc: 13.88 Qgfrc: 0.3099 Qgutf: 0.2054 Qliverf: 0.0535 Rblood2plasma: 0.8419 Vgutc: 0.0158 Vliverc: 0.02448 Vrestc: 0.7879 > > quit("no") > proc.time() user system elapsed 14.35 0.35 14.65