Skip to contents

`ensIDtoName` convert ensembl ID to gene name for more human readibility. It takes a dataframe or matrix with ensembl gene ID as row names and then convert them to common gene name. The default species name is hsapiens. You can also specify the name of species you are interested in. There are some situation you will face duplicated row names after convert. Therefore, please consider first subset the data before conversion.

Usage

ensIDtoName(df, species = "hsapiens")

Arguments

df

a dataframe which has ensembl ID as row names

species

the scientific abbreviation name of a species, such as hsapiens for homo sapiens (human). The default is hsapiens.

Value

a dataframe(matrix) with gene name in row names

Examples

data(hmchimpGene)
data(hmKZNFs337)
dfKZNFs <-
    hmchimpGene[rownames(hmchimpGene) %in% hmKZNFs337$ensembl_gene_id, ]
df <- ensIDtoName(dfKZNFs, "hsapiens")