deleteStudy: Completely remove all data for a study

View source: R/deleteStudy.R

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


pmpsa-hpc/GladiaTOX documentation built on Sept. 1, 2023, 5:52 p.m.