Entering edit mode
17 months ago
Manuel Sokolov Ravasqueira
▴
110
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!
If you are looking for a python version, you can use sanbomics' function.
Your code which assumes you have a pandas dataframe
df
with a column namedgene
.