R/gtoxLoadAsid.R

Defines functions gtoxLoadAsid

Documented in gtoxLoadAsid

#####################################################################
## This program is distributed in the hope that it will be useful, ##
## but WITHOUT ANY WARRANTY; without even the implied warranty of  ##
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the    ##
## GNU General Public License for more details.                    ##
#####################################################################

#-------------------------------------------------------------------------------
# gtoxLoadAsid: Load assay source id and name for the given fields
#-------------------------------------------------------------------------------

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

gtoxLoadAsid <- function(fld=NULL, val=NULL, add.fld=NULL) {

    out <- c(
        "assay_source.asid",
        "assay_source.assay_source_name",
        "assay_source.assay_source_phase"
    )

    qstring <- .buildAssayQ(
        out=out,
        tblo=c(6, 4:1),
        fld=fld,
        val=val,
        add.fld=add.fld
    )

    dat <- gtoxQuery(query=qstring, db=getOption("TCPL_DB"))

    dat[]

}

#-------------------------------------------------------------------------------

Try the GladiaTOX package in your browser

Any scripts or data that you put into this service are public.

GladiaTOX documentation built on Nov. 15, 2020, 2:07 a.m.