How to transform rownames of a RNA Seq dataset with gene names to ENSG format?
1
2
Entering edit mode
17 months ago

I have a RNA Seq data set with gene names such as TP53, MDM2, ... . I want to transform these rownames into ENSG format.

For example: TP53 should be ENSG00000141510.

What is the best way to given each rowname replace rowname with ENSG format of the gene?

Best Regards!

GeneID RNA-seq Ensembl GSEA • 1.0k views
ADD COMMENT
2
Entering edit mode

If you are looking for a python version, you can use sanbomics' function.

pip install sanbomics

Your code which assumes you have a pandas dataframe df with a column named gene.

from sanbomics.tools import id_map

mapper = id_map(species='human', key='symbol', target='ensembl')
mapper.map_column(df, column='gene')
ADD REPLY
3
Entering edit mode
17 months ago
GenoMax 148k

See the answers here : Conversion of Gene Name to Ensembl ID

ADD COMMENT

Login before adding your answer.

Traffic: 1858 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6