%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname httk %global packver 2.3.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 2.3.1 Release: 1%{?dist}%{?buildtag} Summary: High-Throughput Toxicokinetics License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildRequires: R-CRAN-deSolve BuildRequires: R-CRAN-msm BuildRequires: R-CRAN-data.table BuildRequires: R-CRAN-survey BuildRequires: R-CRAN-mvtnorm BuildRequires: R-CRAN-truncnorm BuildRequires: R-stats BuildRequires: R-graphics BuildRequires: R-utils BuildRequires: R-CRAN-magrittr BuildRequires: R-CRAN-purrr BuildRequires: R-methods BuildRequires: R-CRAN-Rdpack BuildRequires: R-CRAN-ggplot2 Requires: R-CRAN-deSolve Requires: R-CRAN-msm Requires: R-CRAN-data.table Requires: R-CRAN-survey Requires: R-CRAN-mvtnorm Requires: R-CRAN-truncnorm Requires: R-stats Requires: R-graphics Requires: R-utils Requires: R-CRAN-magrittr Requires: R-CRAN-purrr Requires: R-methods Requires: R-CRAN-Rdpack Requires: R-CRAN-ggplot2 %description Pre-made models that can be rapidly tailored to various chemicals and species using chemical-specific in vitro data and physiological information. These tools allow incorporation of chemical toxicokinetics ("TK") and in vitro-in vivo extrapolation ("IVIVE") into bioinformatics, as described by Pearce et al. (2017) (). Chemical-specific in vitro data characterizing toxicokinetics have been obtained from relatively high-throughput experiments. The chemical-independent ("generic") physiologically-based ("PBTK") and empirical (for example, one compartment) "TK" models included here can be parameterized with in vitro data or in silico predictions which are provided for thousands of chemicals, multiple exposure routes, and various species. High throughput toxicokinetics ("HTTK") is the combination of in vitro data and generic models. We establish the expected accuracy of HTTK for chemicals without in vivo data through statistical evaluation of HTTK predictions for chemicals where in vivo data do exist. The models are systems of ordinary differential equations that are developed in MCSim and solved using compiled (C-based) code for speed. A Monte Carlo sampler is included for simulating human biological variability (Ring et al., 2017 ) and propagating parameter uncertainty (Wambaugh et al., 2019 ). Empirically calibrated methods are included for predicting tissue:plasma partition coefficients and volume of distribution (Pearce et al., 2017 ). These functions and data provide a set of tools for using IVIVE to convert concentrations from high-throughput screening experiments (for example, Tox21, ToxCast) to real-world exposures via reverse dosimetry (also known as "RTK") (Wetmore et al., 2015 ). %prep %setup -q -c -n %{packname} # fix end of executable files find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; # prevent binary stripping [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true [ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ sed -i 's@-g0@@g' {} \; || true # don't allow local prefix in executable scripts find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; %build %install mkdir -p %{buildroot}%{rlibdir} %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -f %{buildroot}%{rlibdir}/R.css # remove buildroot from installed files find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}