keysToNames: keysToNames

View source: R/as.functions.R

keysToNamesR Documentation

keysToNames

Description

Convert colnames/rownames of a matrix into intelligible event names, e.g., change a key G23 in 'Mutation KRAS'. If a name is not found, the original name is left unchanged.

Usage

keysToNames(x, matrix)

Arguments

x

A TRONCO compliant dataset.

matrix

A matrix with colnames/rownames which represent genotypes keys.

Value

The matrix with intelligible colnames/rownames.

Examples

data(test_model)
adj_matrix = as.adj.matrix(test_model, events=as.events(test_model)[5:15,])$capri_bic
keysToNames(test_model, adj_matrix)



BIMIB-DISCo/TRONCO documentation built on May 7, 2024, 8:13 p.m.