Return a list of samples with specified alteration

which.samples(x, gene, type, neg = FALSE)

Arguments

x

A TRONCO compliant dataset.

gene

A list of gene names

type

A list of types

neg

If FALSE return the list, if TRUE return as.samples() - list

Value

A list of sample

Examples

data(test_dataset)
which.samples(test_dataset, 'TET2', 'ins_del')
#> [1] "patient 23" "patient 24" "patient 25"
which.samples(test_dataset, 'TET2', 'ins_del', neg=TRUE)
#>  [1] "patient 1"  "patient 2"  "patient 3"  "patient 4"  "patient 5" 
#>  [6] "patient 6"  "patient 7"  "patient 8"  "patient 9"  "patient 10"
#> [11] "patient 11" "patient 12" "patient 13" "patient 14" "patient 15"
#> [16] "patient 16" "patient 17" "patient 18" "patient 19" "patient 20"
#> [21] "patient 21" "patient 22" "patient 26" "patient 27" "patient 28"
#> [26] "patient 29" "patient 30" "patient 31" "patient 32" "patient 33"
#> [31] "patient 34" "patient 35" "patient 36" "patient 37" "patient 38"
#> [36] "patient 39" "patient 40"