View source: R/dose_response.R
dose_response_session | R Documentation |
Converts a character vector of curveids, character sessionsID or data.table fitData object to a fitted fitData object, saves the fitData object to either a new session or back to the session provided and then returns a json representation of the fitted fitData object with the savedSessionID
dose_response_session(fitSettings, curveids = NA, sessionID = NA,
fitData = NA, simpleFitSettings = NULL, flagUser = NULL, user = NULL,
modelFit = NULL, ...)
fitSettings |
a fit settings list object (see examples) |
curveids |
a character list of curveids |
sessionID |
a path to a curve fit session |
fitData |
a fidData object to refit |
simpleFitSettings |
a list of simplefitsettings to attach to the fitData object |
A list object with a fitted fitData object and sessionID
#Fit all the curveids in the database:
#get curveids
curveids <- as.character(query("select curveid from api_curve_params")[[1]])
#fitSettings
file <- system.file("conf", "default-ec50-fitSettings.json", package = "racas")
fitSettingsJSON <- readChar(file, file.info(file)$size)
fitSettings <- fromJSON(fitSettingsJSON)
#fit the data
system.time(response <- get_fit_data_experiment_code(fitSettings, curveids = curveids))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.