matrix_convert_genes: Converts the gene rownames of a matrix from the 'from' to...

View source: R/util_funcs.R

matrix_convert_genesR Documentation

Converts the gene rownames of a matrix from the 'from' to 'to' convention. Removes rows of the matrix for which no name in the 'to' convention can be found.

Description

Converts the gene rownames of a matrix from the 'from' to 'to' convention. Removes rows of the matrix for which no name in the 'to' convention can be found.

Usage

matrix_convert_genes(dat.mat, species, from, to)

Arguments

dat.mat

Matrix with rownames to be changed.

species

Species for this data. Either 'human' or 'mouse'.

from

Starting name convention. One of 'ensg', 'gn', or 'entrez'.

to

Ending name convention. One of 'ensg', 'gn', or 'entrez'.

Value

Matrix with converted row names.


califano-lab/PISCES documentation built on Jan. 11, 2023, 5:34 a.m.