View source: R/dose_response_api.R
api_doseResponse_experiment | R Documentation |
This function retrieves the dose response data for a given experiment code, refits it using the simple settings and then saves the data back to the database
api_doseResponse_experiment(simpleFitSettings, modelFitType, recordedBy,
experimentCode, testMode = NULL, modelFit)
simpleFitSettings |
list of fit settings (see details) |
recordedBy |
character user that curve data will be saved as |
experimentCode |
character saved experiment code that contains dose response data |
testMode |
logical unimplemented |
a list of the entities returned from the server
file <- system.file("docs", "example-simple-fitsettings-ll4.json", package = "racas" )
simpleBulkDoseResponseFitRequestJSON <- readChar(file, file.info(file)$size)
simpleFitSettings <- fromJSON(simpleBulkDoseResponseFitRequestJSON)
recordedBy <- "bbolt"
experimentCode <- "EXPT-00000441"
modelFitType <- "4 parameter D-R"
modelFit <- racas::ll4
api_doseResponse_experiment(simpleFitSettings, modelFitType, recordedBy, experimentCode, modelFit)
#Loading fake data first
# requires 1. that a protocol named "Target Y binding") be saved first (see \code{\link{api_createProtocol}})
# 2. have a valid recordedBy (or that acas is set to client.require.login=false)
file <- system.file("docs", "example-simple-fitsettings-ll4.json", package = "racas" )
simpleBulkDoseResponseFitRequestJSON <- readChar(file, file.info(file)$size)
simpleFitSettings <- fromJSON(simpleBulkDoseResponseFitRequestJSON)
experimentCode <- load_dose_response_test_data()
recordedBy <- "bbolt"
api_doseResponse_experiment(simpleFitSettings, recordedBy, experimentCode)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.