tcpl_to_model_dat: Cast tcpl output to model format

Description Usage Arguments Details Value

View source: R/tcpl_to_model_dat.R

Description

tcpl_to_model_dat preps tcpl output for model input.

Usage

1
tcpl_to_model_dat(dat, pathway)

Arguments

dat

output from tcpl level 5 data

pathway

string, specify ER or AR

Details

# This function is to take a pipeline formatted data.table (long format, one m4id per row) and convert to the form needed by the ER model (one chemical per row, multiple columns for assays) Requires a tcplPrepOtpt(tcplLoadData()) formatted data.table also requires an assay_order (list of assay) so that NAs can be converted assumed already subset (one unique row per code)

Value

dat_cast a data.table cast into the correct format for the model


ericwatt/eapath documentation built on May 13, 2017, 7:18 p.m.