Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function normalises the data according to the model δα + β|^{2ξ}, where δ is multiplicative error associated with each experiment, β is the plate specific background, and finally α is the mean absorbance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | bgModel(A.data,
update = TRUE,
parametrisation = "unrestricted",
outlier.test = 3,
outlier.iter = 2,
weights = "fitted",
fitted.a = FALSE,
varpower.min = 10e-4,
varpower.iter = 50,
contr = c("sum", "helmert", "treatment"),
progressbar = "text",
verbose = FALSE,
save = TRUE,
shiny.input = NULL,
session = NULL)
|
A.data |
An A.data object created by either the function |
update |
Should the analysis be updated or run from scratch. When set to |
parametrisation |
The parametrisation used for fitting the model can be either of |
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 |
weights |
Either |
fitted.a |
If FALSE the heteroschedastic variance is fitted according |δα + β|^{2ξ}σ_{ε}^2 and if TRUE it is fitted according to |α|^{2ξ}σ^2 |
varpower.min |
Numeric value indicating the convergence criterion for fitted weight for the variance. Defeaults to |
varpower.iter |
Numeric value determining the number of allowed iterations for fitting the weight. |
contr |
The contrast used when fitting the normalisation model. This can be be either of |
progressbar |
The type of progress bar used to show how far along the function is. Can be either |
verbose |
Should the function indicate what experiment it is currently reading. Defaults to |
save |
Should the results saved (TRUE) or not (FALSE). Internally used for bootstrapping and should be left as TRUE. |
shiny.input |
Used for the shiny server. |
session |
Used for the shiny server. |
Dose response experiments are usually done in triplicates to gain accuracy in the resulting absorbance measures. Normally one simply subtracts the background. However this does not take into account various errors that occur during seeding of the cell lines. This function normalises the data according to the model δα + β|^{2ξ}, where δ is multiplicative error associated with each experiment, β is the plate specific background, and finally α is the mean absorbance.
The ouput of the function is an A.data object of class bgModel
. This is a list with the following components:
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 normalised data for all wells are stored in the element |
drug.color.correct |
Contains the results of the fitted dose reponse experiments for colour correction. |
fits |
List of the fitted objects. The fitted objects for model corrections is stored in element |
The cotribution to the abovementioned data from this function is:
1) data.frame
bc.data
within the element data
which contains:
absorbance |
The colour corrected absorbance values. |
absorbance.nc |
The original absorbation values. |
para |
The parametrisation used for fitting the model. |
NB |
The colour corrected absorbance values subtracted the plate specific background. |
outlier |
Was the well deemed an outlier. |
BC2 |
The model corrected absorbance values corrected for drug colour, background, and variation between cell seeding. |
BC |
The estimated absorbance value for. This is the value used in further analysis. |
Std.Error |
The estimated standard deviation of |
lo |
The lower limit of the 95% CI for |
up |
The upper limit of the 95% CI for |
2) data.frame
bc.data
within the element data
which contains:
absorbance |
The mean of colour corrected absorbance values. |
para |
The parametrisation used for fitting the model. |
NB |
The mean of colour corrected absorbance values subtracted the plate specific background. |
BC |
The estimated absorbance value for. This is the value used in further analysis. |
Std.Error |
The estimated standard deviation of |
lo |
The lower limit of the 95% CI for |
up |
The upper limit of the 95% CI for |
3) The list of fitted gnls
objects.
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
.
The function was written at department of haematology, Aalborg University Hospital and maintained by Steffen Falgreen.
Steffen Falgreen et al. Exposure time independent summary statistics for assessment of drug dependent cell line growth inhibition (2013)
createMetaData
,readDBFData
,bgModel
,plotdrugColorCorrection
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | require(DoseR)
## load Dose Response data
data(A.data)
## perfor the model based pre-processing:
A.data <- bgModel(A.data = A.data,
weights = "fitted",
fitted.a = FALSE,
contr = c("sum"),
outlier.test = 3,
outlier.iter = 2,
varpower.min = 10e-4,
varpower.iter = 50,
parametrisation = "unrestricted",
save = FALSE,
update = TRUE)
# Diagnostics plot of for cell line "RPMI-8226" for the drug
# RPMI-8226" at time point 48. From left to right the plots are
# for Raw data, colour corrected, simple background correction,
# and model-based correction.
plotbgModel(A.data = A.data,
pdfit = FALSE,
names = "RPMI-8226",
drugs = "Doxorubicin",
times = 48,
set.par = TRUE)
# The following code chunk saves the diagnostics plot for all cell lines,
# all drugs, and all times in the folder normalisation.
# plotbgModel(A.data=A.data,
# figure.output="Normalisation",
# pdfit = TRUE,
# pointsize = 8,
# set.par=TRUE)
# Plot the residuals to check whether any of the fits are
# very poor. In order to do the plot for the cell line RPMI-8226
# at the 48 hour time.point for the drug Doxorubidin the
# following code is used:
plotbgModelresid(A.data,
names = "RPMI-8226",
times = 48,
drugs = "Doxorubicin",
col = c("#71965A", "#4F6E9F", "#9F9692", "#9D2441",
"#333333", "#662D91", "#71DEC0", "#F7931E"))
# The following code chunk saves the residual plot for all cell lines,
# all drugs, and all times in the pdf file "resid.plots.pdf".
# plotbgModelresid(A.data, names = NULL,
# times = NULL,
# drugs = NULL,
# pdfit = TRUE,
# file= "resid.plots.pdf",
# col = c("#71965A", "#4F6E9F", "#9F9692", "#9D2441",
# "#333333", "#662D91", "#71DEC0", "#F7931E"),
# pointsize = 6,
# width = 13/2.54, height =(13/2.54)/1.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.