Learn R Programming

tcplfit2: A Concentration-Response Modeling Utility

Welcome to the GitHub repository for the tcplfit2 package.

The tcplfit2 R package performs basic concentration-response curve fitting. The original tcplFit() function in the ToxCast Data Analysis Pipeline (tcpl) R package performed basic concentration-response curvefitting to 3 models. With tcplfit2, the core tcpl concentration-response functionality has been expanded to process diverse high-throughput screen (HTS) data generated at the US Environmental Protection Agency, including targeted ToxCast, high-throughput transcriptomics (HTTr) and high-throughput phenotypic profiling (HTPP). tcplfit2 can be used independently to support analysis for diverse chemical screening efforts.

If you are interested in contributing or want to report a bug, please submit a issue or start a discussion.

To install the current development version, run the following command:

devtools::install_github("USEPA/CompTox-ToxCast-tcplfit2")

Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an “as is” basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity, confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

Copy Link

Version

Install

install.packages('tcplfit2')

Monthly Downloads

875

Version

0.1.9

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Madison Feshuk

Last Published

July 23rd, 2025

Functions in tcplfit2 (0.1.9)

fitcnst

Constant Model Fit
fitexp5

Exponential 5 Model Fit
hillfn

Hill Model
fitpoly1

Polynomial 1 (Linear) Model Fit
hitcont

Continuous Hitcalls
hitcontinner

Continuous Hitcalls Inner
gnlsderivobj

GNLS Derivative Objective Function
gnls

Gain-Loss Model
get_AUC

Calculate Area Under the Curve (AUC)
fitpoly2

Polynomial 2 (Quadratic) Model Fit
fitpow

Power Model Fit
hitlogic

Hit Logic (Discrete)
hitloginner

Hit Logic Inner (Discrete)
mc0

Sample multi-concentration data set from invitrodb
loghill

Log Hill Model
poly2bmds

Polynomial 2 Model (BMDS)
nestselect

Nest Select
loggnls

Log Gain-Loss Model
poly1

Polynomial 1 Model
poly2

Polynomial 2 Model
plot_allcurves

Plot All Curves Fit with tcplfit2_core - ggplot2
mc3

Sample concentration-response data set from invitrodb
post_hit_AUC

Calculate Area Under the Curve After Hit-calling
tcplfit2_core

Concentration-response curve fitting
toplikelihood

Top Likelihood
pow

Power Model
signatures

Sample concentration-response data set from HTTR
tcplObj

Concentration Response Objective Function
tcplhit2_core

Hitcalling Function
bmdbounds

BMD Bounds
concRespPlot

Concentration Response Plot
cnst

Constant Model
concRespCore

Concentration Response Core
acgnlsobj

AC GNLS Objective Function
exp2

Exponential 2 Model
calcempirical_top

Empirically locate top and top concentration
concRespPlot2

Concentration Response Plot - ggplot2
acy

Activity Concentration y
bmdobj

BMD Objective Function
fitgnls

Gain-Loss Model Fit
fitexp2

Exponential 2 Model Fit
fitexp3

Exponential 3 Model Fit
fitexp4

Exponential 4 Model Fit
exp5

Exponential 5 Model
exp3

Exponential 3 Model
fithill

Hill Model Fit
exp4

Exponential 4 Model