dose_response_session: Fit dose response data

View source: R/dose_response.R

dose_response_sessionR Documentation

Fit dose response data

Description

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

Usage

dose_response_session(fitSettings, curveids = NA, sessionID = NA,
  fitData = NA, simpleFitSettings = NULL, flagUser = NULL, user = NULL,
  modelFit = NULL, ...)

Arguments

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

Value

A list object with a fitted fitData object and sessionID

Examples

#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))

mcneilco/racas documentation built on April 19, 2024, 1:12 p.m.