How to change KEGG identifiers to human-read gene names in heatmap function R
Hi community,
I'm having troubles converting my KO/KEGG identifiers into human-read gene names for this heatmap:
The data matrix of Z transformed gene counts has the KEGG identifiers as row names and my sample names as column names.
How do I pass a list/dataframe? of the translated numbers to the heatmap or my original matrix before plotting the heatmap?
Thank you!
• 820 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Which heatmap software are you using? Pheatmap? Complexheatmap? Default or something built in with DESeq2?
What I'd recommend doing is using BiomaRt to convert KEGG to Gene Symbol, then use the
label_annotationwithin Complexheatmap. The documentation is a little dense but it was easy enough to follow.