rowname_id_swap: Swap rowname IDs for data matrix

View source: R/utils_analysis_random.R

rowname_id_swapR Documentation

Swap rowname IDs for data matrix

Description

This function uses the all_gene_names dataframe to swap the current rownames of a data matrix with the desired gene ID. For instance, if the rownames were currently ensembl, this function is able to switch them back to the original form.

Usage

rowname_id_swap(data_matrix, all_gene_names, select_gene_id)

Arguments

data_matrix

Data matrix with ensembl or user gene ID rownames

all_gene_names

Data frame of gene names

select_gene_id

String designating the desired ID type for rownames ("User_ID", "ensembl_ID", "symbol")

Value

Data matrix with changed rownames


espors/idepGolem documentation built on April 23, 2024, 1:11 p.m.