Converts the file generated by the
machine to proper R format. See
readYeastGrower for details.
getWellIds
function or vector. If function its
parameter is the return value of fileParser. It should
return a vector containing the well ids (e.g. A01, A02,
...). You can set the well ids vector directly. See
getWellIdsTecan.
bandwidths
vector of bandwidths to test on
nFold
integer. In how many parts is the
sample divided for cross-validation?
nWell
integer. How many wells out of the
well dataframe will be used for cross validation?
cutoff
scalar between 0 and 1. See
details.
calibration
function or list of
functions. If function, calibration is applied to
all raw data. If list, the well dataframe must contain a
column machine. Depending on that column the
according function in the list is applied to the raw
data. See details
scaleY
function applied to the calibrated
data.
Details
This function needs a few minutes time. The "optimal"
bandwidth is the largest bandwidth which is in 95%
(cutoff parameter) of all cases within one standard
deviation of the best bandwidth. This should make the
derivative of the fitted curve more robust. The raw
values from the machine might not be directly optical
densities (OD), which is needed to infer doubling time.
Calibration functions for each machine can be provided to
map raw values into OD using the calibration
parameter.
Value
list with entries
bandwidth
"optimal" bandwidth
well
well dataframe
bandwidths
tested
bandwidths
err2
squared error
err2std
Standard deviation of squared error
muStd
Standard deviation of max growth rate
oneStdOfMini
bandwidths within one std of best
Author(s)
Julien Gagneur and Andreas Neudecker
Examples
folder <- system.file("extdata", package="cellGrowth")
well <- wellDataFrame(file.path(folder, "plateLayout.txt"), file.path(folder,"machineRun.txt"))
## for a fast example, we use nWell = 1 here. Use a large number (default 100) for real life applications
bw <- bandwidthCV(well, nWell=1)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(cellGrowth)
Loading required package: locfit
locfit 1.5-9.1 2013-03-22
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/cellGrowth/bandwidthCV.Rd_%03d_medium.png", width=480, height=480)
> ### Name: bandwidthCV
> ### Title: Bandwidth cross-validation
> ### Aliases: bandwidthCV
>
> ### ** Examples
>
> folder <- system.file("extdata", package="cellGrowth")
> well <- wellDataFrame(file.path(folder, "plateLayout.txt"), file.path(folder,"machineRun.txt"))
>
> ## for a fast example, we use nWell = 1 here. Use a large number (default 100) for real life applications
> bw <- bandwidthCV(well, nWell=1)
Treating well G12 in plate Plate1_YPFruc.txt
>
>
>
>
>
> dev.off()
null device
1
>