as.types {TRONCO} | R Documentation

## as.types

### Description

Return the types of events for a set of genes which are in 'x', which should be a TRONCO compliant dataset - see `is.compliant`.

### Usage

    as.types(x, genes = NA)

### Arguments

`x` | A TRONCO compliant dataset.
`genes` | A list of genes to consider, if NA all genes are used.

### Value

A matrix with 1 column annotating stages and rownames as sample IDs.

### Examples

    data(test_dataset)
    as.types(test_dataset)
    as.types(test_dataset, genes='TET2')

[Package TRONCO version 2.10.3 Index]