Parse CMap identifier

parseCMapID(id, cellLine = FALSE)

Arguments

id

Character: CMap identifier

cellLine

Boolean: if TRUE, return cell line information from CMap identifier; else, return the CMap identifier without the cell line

Value

Character vector with information from CMap identifiers

Examples

id <- c("CVD001_HEPG2_24H:BRD-K94818765-001-01-0:4.8",
        "CVD001_HEPG2_24H:BRD-K96188950-001-04-5:4.3967",
        "CVD001_HUH7_24H:BRD-A14014306-001-01-1:4.1")
parseCMapID(id, cellLine=TRUE)
#>    CVD001_HEPG2_24H:BRD-K94818765-001-01-0:4.8 
#>                                        "HEPG2" 
#> CVD001_HEPG2_24H:BRD-K96188950-001-04-5:4.3967 
#>                                        "HEPG2" 
#>     CVD001_HUH7_24H:BRD-A14014306-001-01-1:4.1 
#>                                         "HUH7" 
parseCMapID(id, cellLine=FALSE)
#>    CVD001_HEPG2_24H:BRD-K94818765-001-01-0:4.8 
#>        "CVD001_24H:BRD-K94818765-001-01-0:4.8" 
#> CVD001_HEPG2_24H:BRD-K96188950-001-04-5:4.3967 
#>     "CVD001_24H:BRD-K96188950-001-04-5:4.3967" 
#>     CVD001_HUH7_24H:BRD-A14014306-001-01-1:4.1 
#>        "CVD001_24H:BRD-A14014306-001-01-1:4.1"