select a subset of the input genotypes 'x'. Selection can be done by frequency and gene symbols.

events.selection(
  x,
  filter.freq = NA,
  filter.in.names = NA,
  filter.out.names = NA,
  silent = FALSE
)

Arguments

x

A TRONCO compliant dataset.

filter.freq

[0,1] value which constriants the minimum frequence of selected events

filter.in.names

gene symbols which will be included

filter.out.names

gene symbols which will NOT be included

silent

A parameter to disable/enable verbose messages.

Value

A TRONCO compliant dataset.

Examples

data(test_dataset)
dataset = events.selection(test_dataset, 0.3)
#> *** Events selection: #events =  30 , #types =  5 Filters freq|in|out = { TRUE ,  FALSE ,  FALSE }
#> Minimum event frequency:  0.3  ( 12  alterations out of  40  samples).
#> ..............................
#> Selected   events.
#> 
#> Selected  1  events, returning.