giveDrugLabel | R Documentation |
The function converts drug IDs given in a format X1_X2_Y1 or X1_X2-Y2, where X1_X2 is a drug id, Y1 is a number of drug concentration step and Y2 is a drug concentration, to format "Z Y2 µM", where Z is a drug name.
giveDrugLabel(drid, ctab, dtab)
drid |
character vector |
ctab |
data frame |
dtab |
data frame |
The drug ID (X) has to be present in row names of dtab object. ctab is a data frame with drug concentrations (columns are concentrations and rows are the drugs). dtab is a data frame with drugs in the rows and at least one column with drug characteristics. Here the column "name" with the name of the drug is needed.
character vector
Małgorzata Oleś <malgorzata.oles@embl.de>
data("drugs","conctab")
giveDrugLabel(c("D_001-4", "D_002-0.02", "D_001_4", "D_002_1"),
conctab, drugs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.