as.gene: as.gene

View source: R/as.functions.R

as.geneR Documentation

as.gene

Description

Return the genotypes for a certain set of genes and type of events. Input 'x' should be a TRONCO compliant dataset - see is.compliant. In this case column names are substituted with events' types.

Usage

as.gene(x, genes, types = NA)

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.

Value

A matrix, subset of as.genotypes(x) with colnames substituted with events' types.

Examples

data(test_dataset)
as.gene(test_dataset, genes = c('EZH2', 'ASXL1'))


BIMIB-DISCo/TRONCO documentation built on Nov. 5, 2024, 3:44 a.m.