Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function creates an A.data object. This object stores all data related the dose response experiments which is saved in an .RData file. This ensures that the analyses is only conducted on new data including the time consuming bootstrap analysis. The most convinient approach for using the function is to create a metedata object directly from the .dbf filenames. Other possibilities include: 1) having an Excel document with experiment information, 2) A data.frame with experiment information, and 3) a list with dbf filenames and protocol filenames.
1 2 3 4 5 6 7 8 9 10 11 12 13 | createMetaData(data = NULL, data.file = file.path(getwd(), "Absorbance"),
save = TRUE,
namevar = "Cellline", drugvar = "chemo", protocolvar = "R.protocol",
identifier = "identifier", timevar = "Hour", correctionname = "Control",
incubationvar = "incubation", doublingvar = NULL, format = "long",
dbf.path = getwd(), protocol.path = getwd(), dbf.files = NULL,
file.extension = ".dbf", protocol.files = NULL, are.paths.full = TRUE,
colnames = c("namevar", "drugvar", "protocolvar",
"identifier", "timevar"),
sep = c(";"), namesep = " ", identifiersep = "_",
date.format = NULL, unit = "ug/ml", additional.metadata = NULL,
show.warnings = TRUE, update = TRUE, idcomb = NULL, idvar = "sampleid",
namecols = NULL, dbf.file.var = "dbf.file.name", shiny.input = NULL)
|
data |
This may be a data frame containing the metadata for the dose response experiments or the path to an Excel file containg the metadat. Not used when the metadata is inferred from the filename. |
data.file |
Character giving the path to the Excel metadata sheet created for the project. This is only created when the metadata is inferred from the filename. |
save |
Should the data be saved. |
namevar |
The column name containg the name of the cell line. Defeaults to |
drugvar |
Character denoting the name of the column specifying the drug used in the experiment. Defeaults to |
protocolvar |
Character denoting the name of the column specifying the protocol used in the experiment. Defeaults to |
identifier |
Character denoting the name of the column specifying an id for the experiment. Defeaults to |
timevar |
The column name specifying the number of hours the cell line was exposed to the drug. Defeaults to |
correctionname |
The name used to indicate that this plate is to be used for correction of drugcolor. The name is to be included within the column |
incubationvar |
The column name specifying the number of hours the cell line incubated with the MTS assay. Defeaults to |
doublingvar |
Name of the column containg information of cell line doubling time when not treated with drug. This is only used if the experiment only contains 1 time point. |
format |
Format of the metadata. Can be either long or wide format the created Excel sheet will also be in this format. Defaults to |
dbf.path |
Path to the directory storing the dbf files. |
protocol.path |
Path to the directory storing the protocol files. |
dbf.files |
The path to each individual .dbf file. |
file.extension |
The extension for the dBase files. defaults to |
protocol.files |
The path to each individual protocol file. |
are.paths.full |
Logical. if |
colnames |
The order of the colnames specified by the filename for the .dbf file. Defeaults to |
sep |
The character used to specify column separation in the filename. Defealts to ";" rsulting in a filename as described above. |
namesep |
Aditional separator for cell line name, defeaults to "_". The namecharater in the file name can further be used to split up experiments. E.g. the filenames OCI-Ly7_cond1;Doxorubicin;DOX18;20131130;48 and OCI-Ly7_cond2;Doxorubicin;DOX18;20131130;48 says that cell line OCI-Ly7 is treated with Doxorubicin under two different conditions. |
identifiersep |
Aditional separator for identifier, defeaults to "_". The indentifier can be the date used for the setup, however if the same cell line is treated with the same drug on the same date the filename will not be unique. Then we may use an additional seperator in the identifier name. E.g.\ OCI-Ly7;Doxorubicin;DOX18;20131130_1;48 and OCI-Ly7;Doxorubicin;DOX18;20131130_2;48 indicate that the two different experiments. |
date.format |
If the identifier indicates the setup date for the experiment the format of the date is specified.
Defeaults to |
unit |
The unit for the drug concentration. Defeaults to |
additional.metadata |
An optinal additional metadata set containg information regarding the cell lines. The first column must specify the name of the cell line. |
show.warnings |
Should warnings be displayed. |
update |
Do you want to update an already made metasheet or create a new. |
idcomb |
Combination of column names that identifies an experiment id (Optional) |
idvar |
The variable name used for id (Optional) |
namecols |
If the name part of the file name is separated using |
dbf.file.var |
Name of the column in the created metadata containg the filename (optional) |
shiny.input |
Used for the shiny web application. |
When conducting dose response experiments the amount of .dbf becomes large thus metadata is normally stored in Excel sheets. This function converts such data into an A.data
object of class createMetaData
. Since many mistakes occur when copy pasting filenames into Excel the function can also be used to create metadata from filenames provided the filenames are of a certain structure, such as: OCI-Ly7;Doxorubicin;DOX18;20131130;48.dbf.
The ouput of the function is an A.data object of class createMetaData
. 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. |
The meta.list output contains
metadata.full |
Which is the metadata for all dose response experiment in eihter long or wid format. |
metadata.correction |
Which is the metadata for dose response experiment used for correction of drug colour. |
metadata.new |
Metadata for all experiments not used to correct for drug colour. |
additional |
The metadata sheet supplied to |
metadata.long |
Metadata for all dose response experiments sorted in long format. |
Following the creation of the A.data object the function readDBFData
is used to read the dBase files into R.
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)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Example of creating the metadata based on file names
## A.data <- createMetaData(
## dbf.path = data.path, # data.path is a predifined directory storing the dbf files
## protocol.path = protocol.path, # protocol.path is a predifined directory storing the Excel protocol files
## colnames = c("namevar", "drugvar", "protocolvar", ## The order of colnames specified by the file names:
## "identifier", "timevar"), ## OCI-Ly7;Doxorubicin;DOX18;20131130;48
## sep = ";", # The separator used in the filename as noted above
## namevar = "name",
## drugvar = "chemo",
## protocolvar = "R.protocol",
## identifier = "identifier",
## timevar = "Hour",
## namecols = "serum",
## date.format = "%d%m%y",
## correctionname = "Control", # The name specified in the column "namevar" for drug colour correction plates
## unit = "ug/ml",
## additional.metadata = file.path(BCell.ext.dir, "cell.line.metadata.xls"),
## show.warnings = TRUE,
## update = TRUE,
## format = "long",
## data.file = file.path(BCell.gen.dir, "Absorbance.test"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.