api_doseResponse_experiment: Fits experiment dose response data

View source: R/dose_response_api.R

api_doseResponse_experimentR Documentation

Fits experiment dose response data

Description

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

Usage

api_doseResponse_experiment(simpleFitSettings, modelFitType, recordedBy,
  experimentCode, testMode = NULL, modelFit)

Arguments

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

Value

a list of the entities returned from the server

Examples

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)

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