as.selective.advantage.relations {TRONCO} | R Documentation

## as.selective.advantage.relations

### Description

Returns a dataframe with all the selective advantage relations in a TRONCO model. Confidence is also shown - see `as.confidence`. It is possible to specify a subset of events or models if multiple reconstruction have been performed.

### Usage

    as.selective.advantage.relations(x, events = as.events(x),
      models = names(x$model), type = "fit")

### Arguments

`x` | A TRONCO model.
`events` | A subset of events as of `as.events(x)`, all by default.
`models` | A subset of reconstructed models, all by default.
`type` | Either Prima Facie ('pf') or fit ('fit') probabilities, 'fit' by default.

### Value

All the selective advantage relations in a TRONCO model

### Examples

    data(test_model)
    as.selective.advantage.relations(test_model)
    as.selective.advantage.relations(test_model, events=as.events(test_model)[5:15,])
    as.selective.advantage.relations(test_model, events=as.events(test_model)[5:15,], type='pf')

[Package TRONCO version 2.16.2 Index]