giveDrugLabel: Convert extended drug IDs to drug names

Description Usage Arguments Details Value Author(s) Examples

View source: R/addons.R

Description

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.

Usage

1
giveDrugLabel(drid, ctab, dtab)

Arguments

drid

character vector

ctab

data frame

dtab

data frame

Details

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.

Value

character vector

Author(s)

Małgorzata Oleś <[email protected]>

Examples

1
2
3
data("drugs","conctab")
giveDrugLabel(c("D_001-4", "D_002-0.02", "D_001_4", "D_002_1"), 
conctab, drugs)

MalgorzataOles/pace documentation built on Nov. 18, 2017, 7:51 a.m.