R/tcplLoadAeid.R

Defines functions tcplLoadAeid

Documented in tcplLoadAeid

#-------------------------------------------------------------------------------
# tcplLoadAeid: Load assay endpoint id and name for the given fields
#-------------------------------------------------------------------------------

#' @rdname assay_funcs
#' @import data.table
#' @export

tcplLoadAeid <- function(fld = NULL, val = NULL, add.fld = NULL) {
  tbl = c("assay_component_endpoint", "assay", "assay_component")
  out <- c("assay_component_endpoint.aeid", 
           "assay_component_endpoint.assay_component_endpoint_name")
  
  qstring <- .buildAssayQ(out = out, 
                          tblo = c(1, 2, 4, 3, 6), 
                          fld = fld, 
                          val = val, 
                          add.fld = add.fld)
  
  dat <- tcplQuery(query = qstring, db = getOption("TCPL_DB"), tbl=tbl)
  
  dat[]

}

#-------------------------------------------------------------------------------
USEPA/CompTox-ToxCast-tcpl documentation built on May 5, 2019, 4:48 p.m.