Learn R Programming

TRONCO (version 2.4.2)

as.events: as.events

Description

Return all events involving certain genes and of a certain type in 'x', which should be a TRONCO compliant dataset - see is.compliant.

Usage

as.events(x, genes = NA, types = NA, keysToNames = FALSE)

Arguments

x
A TRONCO compliant dataset.
genes
The genes to consider, if NA all available genes are used.
types
The types of events to consider, if NA all available types are used.
keysToNames
If TRUE return a list of mnemonic name composed by type + gene

Value

A matrix with 2 columns (event type, gene name) for the events found.

Examples

Run this code
data(test_dataset)
as.events(test_dataset)
as.events(test_dataset, types='ins_del')
as.events(test_dataset, genes = 'TET2')
as.events(test_dataset, types='Missing')

Run the code above in your browser using DataLab