loadBioassay | R Documentation |
Loads the results of a bioassay experiment (stored as a bioassay
object) into the specified database.
The data source specified in the bioassay
object be added to the database with
addDataSource
before loading. If the assay identifier (aid) is already present in the database,
an error is returned and no additional data is loaded.
loadBioassay(database, bioassay)
database |
A |
bioassay |
A |
Tyler Backman
## create sample database
myDatabaseFilename <- tempfile()
mydb <- newBioassayDB(myDatabaseFilename, indexed=FALSE)
## parse example assay data
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)
## load bioassay into database
addDataSource(mydb, description="PubChem BioAssay", version="unknown")
loadBioassay(mydb, myAssay)
## 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.