Return all gene symbols for which a certain type of event exists in 'x', which should be a TRONCO compliant dataset - see is.compliant.

as.genes(x, types = NA)

Arguments

x

A TRONCO compliant dataset.

types

The types of events to consider, if NA all available types are used.

Value

A vector of gene symbols for which a certain type of event exists

Examples

data(test_dataset)
as.genes(test_dataset)
#>  [1] "TET2"           "EZH2"           "ASXL1"          "SETBP1"        
#>  [5] "NRAS_Ex2_3"     "KRAS_Ex2_3"     "CBL_Ex_8_9"     "IDH2_R140"     
#>  [9] "SF3B1_Ex_12_15" "JARID_2_Ex1_18" "EED_Ex2_12"     "CEBPA"         
#> [13] "EPHB3"          "ETNK1"          "GATA2"          "IRAK4"         
#> [17] "MTA2"           "CSF3R"          "KIT"            "WT1"           
#> [21] "RUNX_1"