View source: R/prepareDatForDB.R
prepareDatForDB | R Documentation |
This function is a wrapper to ease the creation of the dataframe containing data and metadata to be loaded in the database
prepareDatForDB(asid, dat)
asid |
Integer, the asid value(s) to assign the default methods to |
dat |
Data.table containing metadata and data to load in DB |
This function formats a dat table to be loaded in DB
Data table with data and metadata to store in database
## Not run:
## Load sample data
load(system.file("extdata", "data_for_vignette.rda", package="GladiaTOX"))
# Build assay table
assay <- buildAssayTab(plate, chnmap)
## Set study parameters
std.nm <- "SampleStudy" # study name
phs.nm <- "PhaseII" # study phase
## Delete previously loaded study data
asid = gtoxLoadAsid(fld=c("asnm", "asph"), val=list(std.nm, phs.nm))$asid
if(length(asid)>0){ deleteStudy(asid=asid) }
## Load annotation in gtoxDB
loadAnnot(plate, assay, NULL)
## Get the created study ID
asid = gtoxLoadAsid(fld = c("asnm", "asph"), val = list(std.nm, phs.nm))$asid
## Prepare and load data
dat <- prepareDatForDB(asid, dat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.