Delete a pattern and every associated hypotheses from the dataset
delete.pattern(x, pattern)
A TRONCO complian dataset.
data(test_dataset)
delete.pattern(test_dataset, pattern='XOR_EZH2')
#> $genotypes
#> gene 4 gene 5 gene 7 gene 29 gene 30 gene 31 gene 32 gene 33 gene 34
#> patient 1 0 0 0 1 0 0 0 0 0
#> patient 2 0 0 0 1 0 0 0 0 1
#> patient 3 0 0 0 1 1 0 0 0 0
#> patient 4 0 0 0 1 0 0 0 0 1
#> patient 5 0 0 0 1 0 0 0 0 0
#> patient 6 0 0 0 1 0 0 0 0 0
#> patient 7 0 0 0 1 0 0 0 0 0
#> patient 8 0 0 0 1 0 0 0 0 0
#> patient 9 0 0 1 1 0 0 0 0 0
#> patient 10 0 0 0 1 0 0 0 0 0
#> patient 11 0 0 0 1 0 0 0 0 0
#> patient 12 0 0 0 1 1 0 0 0 0
#> patient 13 0 0 0 1 0 0 0 0 0
#> patient 14 0 0 0 1 0 0 0 0 0
#> patient 15 0 0 0 0 0 0 0 0 0
#> patient 16 0 0 0 0 0 0 0 0 0
#> patient 17 0 0 0 0 1 0 0 1 0
#> patient 18 0 0 0 0 0 0 0 0 0
#> patient 19 0 0 0 0 0 0 0 0 0
#> patient 20 0 0 0 0 0 0 0 1 0
#> patient 21 0 0 1 0 0 0 1 0 0
#> patient 22 0 0 0 0 0 0 0 0 0
#> patient 23 1 0 0 0 0 0 0 1 0
#> patient 24 1 0 1 0 0 0 0 1 1
#> patient 25 1 0 0 0 0 0 0 0 0
#> patient 26 0 0 0 0 0 0 0 0 0
#> patient 27 0 1 1 0 0 0 1 0 0
#> patient 28 0 0 0 0 0 0 0 0 0
#> patient 29 0 0 1 0 0 0 0 1 0
#> patient 30 0 0 0 0 0 0 0 0 0
#> patient 31 0 0 0 0 0 0 0 0 0
#> patient 32 0 0 1 0 0 1 0 0 0
#> patient 33 0 0 0 0 0 0 0 0 0
#> patient 34 0 0 0 0 0 0 1 0 0
#> patient 35 0 0 0 0 0 0 0 0 0
#> patient 36 0 0 0 0 0 0 0 0 0
#> patient 37 0 0 0 0 0 0 0 0 0
#> patient 38 0 0 0 0 0 0 0 1 0
#> patient 39 0 0 1 0 0 0 0 0 0
#> patient 40 0 0 0 0 0 0 0 0 0
#> gene 36 gene 40 gene 44 gene 47 gene 49 gene 50 gene 51 gene 52
#> patient 1 0 0 0 0 0 0 0 0
#> patient 2 0 0 0 0 0 0 0 0
#> patient 3 0 0 0 0 0 0 0 0
#> patient 4 0 0 0 0 0 0 0 0
#> patient 5 0 0 0 0 0 0 0 0
#> patient 6 0 0 0 0 0 0 0 0
#> patient 7 0 0 0 0 0 1 0 0
#> patient 8 0 0 0 0 0 0 0 0
#> patient 9 0 0 0 0 0 0 0 0
#> patient 10 0 0 0 0 0 0 0 0
#> patient 11 0 0 0 0 0 0 0 0
#> patient 12 0 0 1 0 0 0 0 0
#> patient 13 0 0 0 0 0 0 0 0
#> patient 14 0 0 0 0 0 0 0 0
#> patient 15 1 0 0 0 0 0 0 0
#> patient 16 0 0 0 0 0 0 0 0
#> patient 17 0 0 0 0 0 0 0 0
#> patient 18 0 0 0 0 0 0 0 0
#> patient 19 0 0 0 0 0 0 0 1
#> patient 20 0 0 0 0 0 0 1 0
#> patient 21 0 0 0 0 0 0 0 0
#> patient 22 0 1 0 0 0 0 0 0
#> patient 23 0 0 0 0 0 0 0 0
#> patient 24 0 0 0 0 0 0 0 0
#> patient 25 0 0 0 0 0 0 0 0
#> patient 26 0 0 0 0 0 0 0 0
#> patient 27 0 0 0 0 0 0 0 0
#> patient 28 0 0 0 0 0 0 0 0
#> patient 29 0 0 0 0 0 0 0 0
#> patient 30 0 0 0 0 0 0 0 0
#> patient 31 0 0 0 1 0 0 0 0
#> patient 32 0 0 0 0 0 0 0 0
#> patient 33 0 0 0 0 0 0 0 0
#> patient 34 0 0 0 0 0 0 0 0
#> patient 35 0 0 0 0 0 0 0 0
#> patient 36 0 0 0 0 0 0 0 0
#> patient 37 0 0 0 0 0 0 0 0
#> patient 38 0 0 0 0 1 0 0 0
#> patient 39 0 0 0 0 0 0 0 0
#> patient 40 0 0 0 0 0 0 0 0
#> gene 53 gene 54 gene 55 gene 56 gene 66 gene 69 gene 77 gene 88
#> patient 1 0 0 0 0 0 0 0 0
#> patient 2 0 0 0 0 0 0 0 0
#> patient 3 0 0 0 0 0 0 0 0
#> patient 4 0 0 0 0 0 0 0 0
#> patient 5 0 0 1 0 0 0 0 0
#> patient 6 0 0 0 0 0 0 0 0
#> patient 7 0 0 0 0 0 0 0 0
#> patient 8 0 0 0 0 0 0 0 0
#> patient 9 0 0 0 0 0 0 0 0
#> patient 10 0 0 0 0 0 0 0 0
#> patient 11 0 0 0 0 0 0 0 0
#> patient 12 0 0 0 0 0 0 0 1
#> patient 13 0 0 1 0 0 0 0 1
#> patient 14 0 0 0 0 0 0 0 0
#> patient 15 0 0 0 0 0 0 0 0
#> patient 16 0 1 0 0 0 0 0 0
#> patient 17 1 0 0 0 0 0 0 0
#> patient 18 0 0 0 0 0 0 0 0
#> patient 19 0 0 0 0 0 0 0 0
#> patient 20 0 0 0 0 0 0 0 0
#> patient 21 0 0 0 0 0 0 0 0
#> patient 22 0 0 0 0 0 0 0 0
#> patient 23 0 0 0 1 0 0 0 0
#> patient 24 0 0 0 0 0 0 0 0
#> patient 25 0 0 0 1 0 1 0 0
#> patient 26 0 0 0 0 0 0 0 1
#> patient 27 0 0 0 0 0 0 0 0
#> patient 28 0 0 0 0 0 0 0 0
#> patient 29 0 0 0 0 0 0 0 1
#> patient 30 0 0 1 0 0 0 0 0
#> patient 31 0 0 0 0 0 0 1 0
#> patient 32 0 0 0 0 0 0 0 0
#> patient 33 0 0 0 0 0 0 0 0
#> patient 34 0 0 1 0 1 0 1 0
#> patient 35 0 0 0 0 0 0 0 0
#> patient 36 0 0 0 0 0 0 0 0
#> patient 37 0 0 0 0 0 0 0 0
#> patient 38 0 0 0 0 0 0 0 0
#> patient 39 0 0 0 0 0 0 0 0
#> patient 40 0 0 0 0 0 0 0 1
#> gene 89 gene 91 gene 111 OR_CSF3R
#> patient 1 0 0 0 0
#> patient 2 0 1 0 0
#> patient 3 0 0 0 0
#> patient 4 0 1 0 0
#> patient 5 0 0 1 1
#> patient 6 1 0 0 0
#> patient 7 0 1 0 0
#> patient 8 0 1 0 0
#> patient 9 0 0 0 0
#> patient 10 0 0 0 0
#> patient 11 0 0 0 0
#> patient 12 0 0 0 0
#> patient 13 0 0 0 1
#> patient 14 0 0 1 1
#> patient 15 0 0 0 0
#> patient 16 0 0 0 0
#> patient 17 0 0 0 0
#> patient 18 0 0 0 0
#> patient 19 0 0 0 0
#> patient 20 0 0 0 0
#> patient 21 0 0 0 0
#> patient 22 0 0 0 0
#> patient 23 0 0 0 0
#> patient 24 0 0 0 0
#> patient 25 0 0 0 0
#> patient 26 0 0 0 0
#> patient 27 0 0 0 0
#> patient 28 0 0 0 0
#> patient 29 0 0 0 0
#> patient 30 0 0 0 1
#> patient 31 0 0 0 0
#> patient 32 0 0 0 0
#> patient 33 0 0 0 0
#> patient 34 0 0 0 1
#> patient 35 0 0 1 1
#> patient 36 0 0 0 0
#> patient 37 0 0 0 0
#> patient 38 0 0 0 0
#> patient 39 0 0 0 0
#> patient 40 0 0 0 0
#>
#> $annotations
#> type event
#> gene 4 "ins_del" "TET2"
#> gene 5 "ins_del" "EZH2"
#> gene 7 "ins_del" "ASXL1"
#> gene 29 "missense_point_mutations" "SETBP1"
#> gene 30 "missense_point_mutations" "NRAS_Ex2_3"
#> gene 31 "missense_point_mutations" "KRAS_Ex2_3"
#> gene 32 "missense_point_mutations" "TET2"
#> gene 33 "missense_point_mutations" "EZH2"
#> gene 34 "missense_point_mutations" "CBL_Ex_8_9"
#> gene 36 "missense_point_mutations" "IDH2_R140"
#> gene 40 "missense_point_mutations" "SF3B1_Ex_12_15"
#> gene 44 "missense_point_mutations" "JARID_2_Ex1_18"
#> gene 47 "missense_point_mutations" "EED_Ex2_12"
#> gene 49 "missense_point_mutations" "CEBPA"
#> gene 50 "missense_point_mutations" "EPHB3"
#> gene 51 "missense_point_mutations" "ETNK1"
#> gene 52 "missense_point_mutations" "GATA2"
#> gene 53 "missense_point_mutations" "IRAK4"
#> gene 54 "missense_point_mutations" "MTA2"
#> gene 55 "missense_point_mutations" "CSF3R"
#> gene 56 "missense_point_mutations" "KIT"
#> gene 66 "nonsense_ins_del" "WT1"
#> gene 69 "nonsense_ins_del" "RUNX_1"
#> gene 77 "nonsense_ins_del" "CEBPA"
#> gene 88 "nonsense_point_mutations" "TET2"
#> gene 89 "nonsense_point_mutations" "EZH2"
#> gene 91 "nonsense_point_mutations" "ASXL1"
#> gene 111 "nonsense_point_mutations" "CSF3R"
#> OR_CSF3R "Pattern" "OR_CSF3R"
#>
#> $types
#> color
#> ins_del "khaki"
#> missense_point_mutations "lightgreen"
#> nonsense_ins_del "cornflowerblue"
#> nonsense_point_mutations "firebrick1"
#> Pattern "slateblue"
#>
#> $stages
#> [1] NA
#>
#> $hypotheses
#> $hypotheses$num.hypotheses
#> [1] 1
#>
#> $hypotheses$hlist
#> cause effect
#> [1,] "OR_CSF3R" "gene 4"
#> [2,] "OR_CSF3R" "gene 5"
#> [3,] "OR_CSF3R" "gene 7"
#> [4,] "OR_CSF3R" "gene 29"
#> [5,] "OR_CSF3R" "gene 30"
#> [6,] "OR_CSF3R" "gene 31"
#> [7,] "OR_CSF3R" "gene 32"
#> [8,] "OR_CSF3R" "gene 33"
#> [9,] "OR_CSF3R" "gene 34"
#> [10,] "OR_CSF3R" "gene 36"
#> [11,] "OR_CSF3R" "gene 40"
#> [12,] "OR_CSF3R" "gene 44"
#> [13,] "OR_CSF3R" "gene 47"
#> [14,] "OR_CSF3R" "gene 49"
#> [15,] "OR_CSF3R" "gene 50"
#> [16,] "OR_CSF3R" "gene 51"
#> [17,] "OR_CSF3R" "gene 52"
#> [18,] "OR_CSF3R" "gene 53"
#> [19,] "OR_CSF3R" "gene 54"
#> [20,] "OR_CSF3R" "gene 56"
#> [21,] "OR_CSF3R" "gene 66"
#> [22,] "OR_CSF3R" "gene 69"
#> [23,] "OR_CSF3R" "gene 77"
#> [24,] "OR_CSF3R" "gene 88"
#> [25,] "OR_CSF3R" "gene 89"
#> [26,] "OR_CSF3R" "gene 91"
#> [27,] "gene 4" "OR_CSF3R"
#> [28,] "gene 5" "OR_CSF3R"
#> [29,] "gene 7" "OR_CSF3R"
#> [30,] "gene 29" "OR_CSF3R"
#> [31,] "gene 30" "OR_CSF3R"
#> [32,] "gene 31" "OR_CSF3R"
#> [33,] "gene 32" "OR_CSF3R"
#> [34,] "gene 33" "OR_CSF3R"
#> [35,] "gene 34" "OR_CSF3R"
#> [36,] "gene 36" "OR_CSF3R"
#> [37,] "gene 40" "OR_CSF3R"
#> [38,] "gene 44" "OR_CSF3R"
#> [39,] "gene 47" "OR_CSF3R"
#> [40,] "gene 49" "OR_CSF3R"
#> [41,] "gene 50" "OR_CSF3R"
#> [42,] "gene 51" "OR_CSF3R"
#> [43,] "gene 52" "OR_CSF3R"
#> [44,] "gene 53" "OR_CSF3R"
#> [45,] "gene 54" "OR_CSF3R"
#> [46,] "gene 56" "OR_CSF3R"
#> [47,] "gene 66" "OR_CSF3R"
#> [48,] "gene 69" "OR_CSF3R"
#> [49,] "gene 77" "OR_CSF3R"
#> [50,] "gene 88" "OR_CSF3R"
#> [51,] "gene 89" "OR_CSF3R"
#> [52,] "gene 91" "OR_CSF3R"
#>
#> $hypotheses$hstructure
#> $hypotheses$hstructure$OR_CSF3R
#> gene 55 gene 111 OR_gene 55_gene 111
#> gene 55 0 0 1
#> gene 111 0 0 1
#> OR_gene 55_gene 111 0 0 0
#>
#>
#> $hypotheses$patterns
#> $hypotheses$patterns$OR_CSF3R
#> [1] "gene 55" "gene 111"
#>
#>
#> $hypotheses$atoms
#> $hypotheses$atoms$`gene 4`
#> NULL
#>
#> $hypotheses$atoms$`gene 7`
#> NULL
#>
#> $hypotheses$atoms$`gene 29`
#> NULL
#>
#> $hypotheses$atoms$`gene 30`
#> NULL
#>
#> $hypotheses$atoms$`gene 31`
#> NULL
#>
#> $hypotheses$atoms$`gene 32`
#> NULL
#>
#> $hypotheses$atoms$`gene 34`
#> NULL
#>
#> $hypotheses$atoms$`gene 36`
#> NULL
#>
#> $hypotheses$atoms$`gene 40`
#> NULL
#>
#> $hypotheses$atoms$`gene 44`
#> NULL
#>
#> $hypotheses$atoms$`gene 47`
#> NULL
#>
#> $hypotheses$atoms$`gene 49`
#> NULL
#>
#> $hypotheses$atoms$`gene 50`
#> NULL
#>
#> $hypotheses$atoms$`gene 51`
#> NULL
#>
#> $hypotheses$atoms$`gene 52`
#> NULL
#>
#> $hypotheses$atoms$`gene 53`
#> NULL
#>
#> $hypotheses$atoms$`gene 54`
#> NULL
#>
#> $hypotheses$atoms$`gene 55`
#> [1] "OR_CSF3R"
#>
#> $hypotheses$atoms$`gene 56`
#> NULL
#>
#> $hypotheses$atoms$`gene 66`
#> NULL
#>
#> $hypotheses$atoms$`gene 69`
#> NULL
#>
#> $hypotheses$atoms$`gene 77`
#> NULL
#>
#> $hypotheses$atoms$`gene 88`
#> NULL
#>
#> $hypotheses$atoms$`gene 91`
#> NULL
#>
#> $hypotheses$atoms$`gene 111`
#> [1] "OR_CSF3R"
#>
#>
#>