tcpl3.3.0 package

ToxCast Data Analysis Pipeline

assay_funcs

Functions for loading assay information

blineShift

Shift the baseline to 0

check_tcpl_db_schema

Function that checks if the most recent v3 table schema is used in the...

config_funcs

Functions for configuring the tcpl package

dot-buildAssayQ

Generate query for assay information

dot-ChemListQ

Function to support queries by chemical

dot-ChemQ

Function to support queries by chemical

dot-convertNames

Convert assay names to their abbreviations

dot-load6DR

Load data for tcpl6

dot-plateHeat

Plot plate heatmap

dot-prepField

Paste appropriate table name to field name

dynamic_table_trunc

dynamic_table_trunc Dynamically truncate lengths of column values of t...

flareFunc

Calculate the weighted mean of a square to detect plate flares

get_plot_caption

get_plot_caption Generate plot caption given number of flags and lengt...

get_plot_title

get_plot_title Generate plot title given number of rows and length of ...

get_verbose_tables

get_verbose_tables Generates 'gt' package tables containing annotation...

hill_utils

Functions to solve the Hill model

interlaceFunc

Calculate the weighted mean of a square to detect interlace effect

is.odd

Check for odd numbers

lu

Abbreviation for length(unique(x))

lw

Abbreviation for length(which(x))

mc1

Perform level 1 multiple-concentration processing

MC2_Methods

List of level 2 multiple-concentration correction functions

mc2

Perform level 2 multiple-concentration processing

MC3_Methods

List of level 3 multiple-concentration normalization methods

mc3

Perform level 3 multiple-concentration processing

MC4_Methods

List of level 4 multiple-concentration methods for calculating bmad

mc4

Perform level 4 multiple-concentration processing

MC5_Methods

Load list of level 5 multiple-concentration cutoff methods

mc5

Perform level 5 multiple-concentration processing

MC6_Methods

Load list of level 6 multiple-concentration flag methods

mc6

Perform level 6 multiple-concentration processing

Models

Model objective functions

MORELETTERS

MORELETTERS Extends LETTERS recursively to any number of letters

mthd_funcs

Functions for managing processing methods

query_funcs

Wrappers for sending queries and fetching results

registerMthd

Add a new analysis method

rgstr_funcs

Functions for registering & updating annotation information

round_n

round_n General function to round/shorten values for plotting tables

SC1_Methods

List of level 1 single-concentration normalization functions

sc1

Perform level 1 single-concentration processing

SC2_Methods

List of level 2 single-concentration hit-call functions

sc2

Perform level 2 single-concentration processing

sink.reset

Reset all sinks

tcplAddModel

Draw a tcpl Model onto an existing plot

tcplAICProb

Calculate the AIC probabilities

tcplAppend

Append rows to a table

tcplCascade

Do a cascading delete on tcpl screening data

tcplCode2CASN

Convert chemical code to CAS Registry Number

tcplCytoPt

Calculate the cytotoxicity point based on the "burst" endpoints

tcpldbStats

Get summary statistics for the database

tcplDefine

Load data dictionary descriptions

tcplDelete

Delete rows from tcpl databases

tcplFit

Fit the data with the constant, hill, and gain-loss models

tcplfit2_fun

tcplfit2_fun Returns tcplfit2 function for drawing models given input

tcplFit2_nest

Nest dataframe into a list that is readable by tcplfit2

tcplFit2_unnest

Unnest tcplfit2 parameters into a dataframe

tcplFit2

tcpl Wrapper for tcplfit2_core including additional calculations to fi...

tcplGetAeid

get Aeid for endpoint name

tcplggplot2

tcplggplot2

tcplHit2

Hitcalling with tcplfit2

tcplLegacyPlot

tcplLegacyPlot

tcplListFlds

Load the field names for a table

tcplLoadChem

Load sample/chemical information

tcplLoadChemList

Load chemical list information

tcplLoadConcUnit

Load concentration units for assay endpoints

tcplLoadData

Load tcpl data

tcplLoadUnit

Load response units for assay endpoints

tcplLvlCount

Load tcpl level counts

tcplMakeAeidMultiPlts

Create a .pdf with all dose-response plots for a given aeid, 6 per pag...

tcplMakeAeidPlts

Create a .pdf with dose-response plots

tcplMakeChidMultiPlts

Create a .pdf with all dose-response plots for a given chid, 6 per pag...

tcplMultiplot

Plot summary fits based on fit and dose-response data

tcplPlot

Generic Plotting Function for tcpl

tcplPlotCalcAspectRatio

tcplPlotCalcAspectRatio

tcplPlotFitc

Plot the fit category tree

tcplPlotFits

Plot summary fits based on fit and dose-response data

tcplPlotLoadData

Utility function to load data for tcplPlot

tcplPlotLoadWllt

tcplPlotLoadWllt Replaces NA dtxsid and chnm with a string description...

tcplPlotlyPlot

tcplPlotlyPlot

tcplPlotM4ID

Plot fit summary plot by m4id

tcplPlotPlate

Plot plate heatmap

tcplPlotSetYRange

tcplPlotSetYRange

tcplPlotValidate

tcplPlotValidate

tcplPrepOtpt

Map assay/chemical ID values to annotation information

tcplRun

Perform data processing

tcplSubsetChid

Subset level 5 data to a single sample per chemical

tcplVarMat

Create chemical by assay matrices

tcplWriteData

Write screening data into the tcpl databases

tcplWriteLvl0

Write level 0 screening data into the tcpl databases

write_lvl_4

Write level 4 with updated schema

The ToxCast Data Analysis Pipeline ('tcpl') is an R package that manages, curve-fits, plots, and stores ToxCast data to populate its linked MySQL database, 'invitrodb'. The package was developed for the chemical screening data curated by the US EPA's Toxicity Forecaster (ToxCast) program, but 'tcpl' can be used to support diverse chemical screening efforts.

  • Maintainer: Madison Feshuk
  • License: MIT + file LICENSE
  • Last published: 2025-05-05