How to transform rownames of a RNA Seq dataset with gene names to ENSG format?
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!
• 1,859 views
•
link
1 answer
See the answers here : Conversion of Gene Name to Ensembl ID
• 0 views
•
link
Log in to answer this question.
If you are looking for a python version, you can use sanbomics' function.
Your code which assumes you have a pandas dataframe
dfwith a column namedgene.