This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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:

heatmap of differential gene expression

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!

r deseq2 kegg heatmap

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_annotation within Complexheatmap. The documentation is a little dense but it was easy enough to follow.

0 answers

No answers yet.

Log in to answer this question.