drugColorCorrection: Correction for absorbance caused by the drug.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/dataflow.R

Description

This functionction is used to estimate the absorbance values caused by the drug. Next, the estimates are used to correct the absorbance measures for all experiments using the drug.

Usage

1
2
3
4
5
6
drugColorCorrection(A.data = A.data, weights = "fitted", fitted.a = FALSE, 
                    contr = c("sum", "helmert", "treatment"), outlier.test = 3, 
                    outlier.iter = 2, varpower.min = 0.001, varpower.iter = 50, 
                    parametrisation = "unrestricted", 
                    update = TRUE, save = TRUE, progressbar = "text", 
                    shiny.input = NULL, session = NULL)

Arguments

A.data

An A.data object created by the function readDBFData.

weights

Either fitted or NULL. The variance of the absorbance measures are usually of a heteroschedastic form e.g. |δα + β|^{2ξ}σ^2. If the value of weights is not equal to NULL the power ξ is fitted.

fitted.a

If FALSE the heteroschedastic variance is fitted according |δα + β|^{2ξ}σ_{ε}^2 and if TRUE it is fitted according to |α|^{2ξ}σ^2

contr

The contrast used when fitting the normalisation model. This can be be either of sum, helmert, or treatment. We strongly urge the use of the sum contrast which is used as defeault.

outlier.test

Numeric value indicating the number of standard deviations an obserbance measure should be from the estimated mean in order to be deemed an outlier. Defaults to 3.

outlier.iter

Numeric value indicating the number of iterations the outlier.test should be run. Defaults to 2.

varpower.min

Numeric value indicating the convergence criterion for fitted weight for the variance. Defeaults to 0.001

varpower.iter

Numeric value determining the number of allowed iterations for fitting the weight.

parametrisation

The parametrisation used for fitting the model can be either of none, square, abs, exp, or expinv. when set to none there is no restriction on the fitted absorbance values. On the contrary, if any of the others are chosen the absorbance is restricted to be positive. It is also possible to give the arguments as a vector. Then the optimization routine will circle through each element in the vector until it converges.

update

Should the analysis be updated or run from scratch. When set to TRUE only new experiments will be normalised. When FALSE The normalisation is conducted for all experiments.

save

Should the data be saved. Defeaults to TRUE.

progressbar

The type of progress bar used to show how far along the function is. Can be either "window", text or none.

shiny.input

Used for the shiny server.

session

Used for the shiny server.

Details

This function is used to correct for absorbance measures caused by the drug itself. This is the case for drugs with colour, and drugs that interacts with the MTS assy. To gain precise estimates it is necessary to account for the elevated absorbance values when estimating the cell count. To use this function for the purpose it is necessary to setup a number of plates where each concentration used in the experiment is presented but no cells are added. The name used in place of a cell line name must be specified in the function createMetaData using the argument correctionname.

Value

The ouput of the function is an A.data object of class drugColorCorrection. This is a list with the following component

meta.list

This is a list of meta data objects.

call

A list containing information regarding the call to the function.

auxiliary

List of auxiliary data used by other functions.

data

List of data frames. The colour corrected Absorbance data are stored in raw.data and the protocols are stored in protocols

drug.color.correct

Contains the results of the fitted dose reponse experiments for colour correction.

In the data.frame raw.data the column absorbance.nc corresponds to the uncorrected absorbance measurements and the the column absorbance contains the corrected ones.

The element background.list within drug.color.correct contains the fitted abosorbance values for the various concentrations:

Concentration

The concentrations

BC

The absorbance associated with the drug at the concentration.

lo

The lower limit of the 95% CI for BC

up

The upper limit of the 95% CI for BC

BC2

The absorbance associated with the drug at each concentration in relation to the control.

Conc

The concentrations on a molar

Note

After the data have been read into R the need to be preprocessed. If any drug colour correction plates have been established continue to the funktion drugColorCorrection otherwise continue to the function bgModel.

Author(s)

The function was written at department of haematology, Aalborg University Hospital and maintained by Steffen Falgreen.

References

Steffen Falgreen et al. Exposure time independent summary statistics for assessment of drug dependent cell line growth inhibition (2013)

See Also

createMetaData,readDBFData,bgModel,plotdrugColorCorrection

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require(DoseR)
## load Dose Response data
data(A.data)

A.data <- 
      drugColorCorrection(A.data = A.data, 
                          progressbar = "text", save = FALSE)

## Plot of the drug specific Absorbance measures with an 95% confidence interval.
plotdrugColorCorrection(A.data=A.data, type.plot = c("output"))

## Plot of the absorbance values. Use this plot for dagnostics of each dose response 
## experiment. Plates that are not fitted adequately should be removed a plate is found 
## In the plot to the left, the raw data is shown, the middle plot shows the absorbance values
## corrected in the conventional way, and the right plot shows the model corrected absorbance values.

par(mfrow = c(2,3))
plotdrugColorCorrection(A.data    = A.data, 
                        drugs     = "Doxorubicin",
                        set.par   = FALSE,
                        type.plot = c("raw"))
    
plotdrugColorCorrection(A.data    = A.data, 
                        drugs     = "Rituximab",
                        set.par   = FALSE,
                        type.plot = c("raw"))

HaemAalborg/DoseR documentation built on Jan. 17, 2021, 7:40 a.m.