loadAnnot {GladiaTOX} | R Documentation

## Register the annotations provided by GUI

### Description

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

### Usage

    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

    ## 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)

[Package GladiaTOX version 1.0.0 Index]