Return the colors associated to each type of event in 'x', which should be a TRONCO compliant dataset - see is.compliant.

as.colors(x)

Arguments

x

A TRONCO compliant dataset.

Value

A named vector of colors.

Examples

data(test_dataset)
as.colors(test_dataset)
#>                  ins_del missense_point_mutations         nonsense_ins_del 
#>                  "khaki"             "lightgreen"         "cornflowerblue" 
#> nonsense_point_mutations                  Pattern 
#>             "firebrick1"              "slateblue"