insertFigureData {tigreBrowserWriter} | R Documentation |
Insert figure data directly to the database
Description
Insert figure data directly to the database
Usage
insertFigureData(db, experimentName, regulatorName, filenames, name = "",
description = "", priority = 0)
Arguments
db |
Database object created by |
experimentName |
Experiment name |
regulatorName |
Regulator name (more detailed experiment identifier) |
filenames |
A list of file names of PNG figures. names of the list must correspond to the names of the entities the figures are for. |
name |
Optional figure name |
description |
Optional figure description |
priority |
Integer priority used for sorting figures (default: 0) |
Value
An updated database object db
Examples
db <- initializeDb("", "My Dataset")
logl <- c(-4.0, -2.0, 0.0)
names(logl) <- c("A", "B", "C")
baselogl <- c(1.0, -1.0, 4.0)
names(baselogl) <- names(logl)
db <- insertResults(db, "testexperiment", "testregulator", "",
logl, baselineloglikelihoods=baselogl)
# Generate a dummy plot (reused for all data elements for simplicity)
examplefile <- tempfile("plot", fileext=".png")
png(examplefile)
plot(c(0, 1), c(0, 1))
dev.off()
figures <- list(A=examplefile, B=examplefile, C=examplefile)
db <- insertFigureData(db, "testexperiment", "testregulator",
figures)
closeDb(db)
[Package tigreBrowserWriter version 0.1.5 Index]