loadDB {ELISAtools}R Documentation

Read the saved elisa_batch data

Description

Load the serialized elisa_batch data from disk.

Usage

loadDB(db)

Arguments

db

characters to specify the path and file name the elisa data file.

Details

Here we deserialize elisa_batch data by wrapping the readRds() function call. The serialized elisa_batch data are assumed to have been correctly analyzed. We will print a summary for what has been read.

Value

a list of batches holding different runs of elisa, which could contain one or many elisa_plates with data and annotations for each plate.

See Also

elisa_batch-class loadData saveDB

Examples

#R code to run 5-parameter logistic regression on ELISA data
#load the library
library(ELISAtools)

#get file folder
dir_file<-system.file("extdata", package="ELISAtools")

batches<-loadData(file.path(dir_file,"design.txt"))

#make a guess for the parameters, the other two parameters a and d 
#will be estimated based on data.
model<-"5pl"
pars<-c(7.2,0.5, 0.015) #5pl inits
names(pars)<-c("xmid", "scal", "g")


#do fitting. model will be written into data set.
batches<-runFit(pars=pars,  batches=batches, refBatch.ID=1, model=model  )

#now call to do predications based on the model.
batches<-predictAll(batches);

#now saving the data.
saveDB(batches, file.path(tempdir(),"elisa_tool1.rds"));

loadDB(file.path(tempdir(),"elisa_tool1.rds"));

[Package ELISAtools version 0.1.5 Index]