deleteStudy {GladiaTOX} | R Documentation

## Completely remove all data for a study

### Description

`deleteStudy` completely removes all data for a study from the database.

### Usage

    deleteStudy(asid, db = NULL)

### Arguments

`asid` | The assay source/study ID
`db` | (optional) the databse to delete from, defaults to the current database settings

### Details

Cannot be undone. Please use carefully. Not exported, as this is intended for development and should not be used with real data.

### Value

None

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

    ## Load annotation in gtoxDB
    loadAnnot(plate, assay, NULL)

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

    ## End(Not run)

[Package GladiaTOX version 1.6.1 Index]