Return the list of events present in selected patterns

as.events.in.patterns(x, patterns = NULL)

Arguments

x

A TRONCO compliant dataset.

patterns

A list of patterns for which the list will be returned

Value

A list of events present in patterns which consitute CAPRI's hypotheses

Examples

data(test_dataset)
as.events.in.patterns(test_dataset)
#>          type                       event  
#> gene 5   "ins_del"                  "EZH2" 
#> gene 33  "missense_point_mutations" "EZH2" 
#> gene 55  "missense_point_mutations" "CSF3R"
#> gene 89  "nonsense_point_mutations" "EZH2" 
#> gene 111 "nonsense_point_mutations" "CSF3R"
as.events.in.patterns(test_dataset, patterns='XOR_EZH2')
#>         type                       event 
#> gene 5  "ins_del"                  "EZH2"
#> gene 33 "missense_point_mutations" "EZH2"
#> gene 89 "nonsense_point_mutations" "EZH2"