loadAnnot: Register the annotations provided by GUI

Description Usage Arguments Details Value Examples

View source: R/loadAnnot.R

Description

This function parses the output from the GUI and registers the appropriate data within the GladiaTOX database.

Usage

1
loadAnnot(plate, assay, outFile = "out.json")

Arguments

plate

path to 'plate' JSON file produced by the GUI

assay

path to 'assay' JSON file produced by the GUI

outFile

character of length 1, name of the output file

Details

If loading legacy data, 'outFile' should be set to NULL and no JSON file will be written.

Value

Logical value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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)

## End(Not run)

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