|
a |
|
b/man/giveDrugLabel.Rd |
|
|
1 |
\name{giveDrugLabel} |
|
|
2 |
\alias{giveDrugLabel} |
|
|
3 |
\title{ |
|
|
4 |
Convert extended drug IDs to drug names |
|
|
5 |
} |
|
|
6 |
\description{ |
|
|
7 |
The function converts drug IDs given in a format X1_X2_Y1 or X1_X2-Y2, |
|
|
8 |
where X1_X2 is a drug id, Y1 is a number of drug concentration step and Y2 |
|
|
9 |
is a drug concentration, to format "Z Y2 µM", where Z is a drug name. |
|
|
10 |
} |
|
|
11 |
\usage{ |
|
|
12 |
giveDrugLabel(drid, ctab, dtab) |
|
|
13 |
} |
|
|
14 |
\arguments{ |
|
|
15 |
\item{drid}{character vector} |
|
|
16 |
\item{ctab}{data frame} |
|
|
17 |
\item{dtab}{data frame} |
|
|
18 |
} |
|
|
19 |
\details{ |
|
|
20 |
The drug ID (X) has to be present in row names of dtab object. |
|
|
21 |
ctab is a data frame with drug concentrations |
|
|
22 |
(columns are concentrations and rows are the drugs). |
|
|
23 |
dtab is a data frame with drugs in the rows and at least one |
|
|
24 |
column with drug characteristics. Here the column "name" with the |
|
|
25 |
name of the drug is needed. |
|
|
26 |
} |
|
|
27 |
\value{ |
|
|
28 |
character vector |
|
|
29 |
} |
|
|
30 |
\author{ |
|
|
31 |
Małgorzata Oleś <dr.malgorzata.oles@gmail.com> |
|
|
32 |
} |
|
|
33 |
\examples{ |
|
|
34 |
data("drugs","conctab") |
|
|
35 |
giveDrugLabel(c("D_001-4", "D_002-0.02", "D_001_4", "D_002_1"), |
|
|
36 |
conctab, drugs) |
|
|
37 |
} |