dropBioassay | R Documentation |
Allows the user to delete all records from the database associated with a given assay identifier.
dropBioassay(database, aid)
database |
A |
aid |
The assay identifier string (aid), matching an aid for an assay loaded into the database. |
Tyler Backman
## create sample database and load with data
myDatabaseFilename <- tempfile()
mydb <- newBioassayDB(myDatabaseFilename, indexed=FALSE)
extdata_dir <- system.file("extdata", package="bioassayR")
assayDescriptionFile <- file.path(extdata_dir, "exampleAssay.xml")
activityScoresFile <- file.path(extdata_dir, "exampleScores.csv")
myAssay <- parsePubChemBioassay("1000", activityScoresFile, assayDescriptionFile)
addDataSource(mydb, description="PubChem BioAssay", version="unknown")
loadBioassay(mydb, myAssay)
## delete the loaded assay
dropBioassay(mydb, "1000")
## disconnect from and delete sample database
disconnectBioassayDB(mydb)
unlink(myDatabaseFilename)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.