Return a list of events which are observed in the input samples list

as.events.in.sample(x, sample)

Arguments

x

A TRONCO compliant dataset

sample

Vector of sample names

Value

A list of events which are observed in the input samples list

Examples

data(test_dataset)
as.events.in.sample(test_dataset, c('patient 1', 'patient 7'))
#>         type                       event   
#> gene 29 "missense_point_mutations" "SETBP1"
#> gene 50 "missense_point_mutations" "EPHB3" 
#> gene 91 "nonsense_point_mutations" "ASXL1"