Return the list of events present in selected patterns
as.events.in.patterns(x, patterns = NULL)
A list of events present in patterns which consitute CAPRI's hypotheses
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"