This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to create heatmaps only with DE genes in edgeR

Now I have 20 DE genes out of 500 genes between groups A and B. How can I create heatmaps only with those 20 DE genes? See figure S1 and S3 from the [reference paper][1][1]: http://www.pnas.org/content/113/38/10655 I created figure S1 using heatmap.2 in Rstudio- edgeR.

edger heatmap.2 pheatmap de genes

1 answer

Have you tried to build a subset with those 20 genes? I assume you have one gene per row in which case you should take a look at this post: Subsetting in R based on row name?

From there on the process should be exactly the same. Does this help you?

Log in to answer this question.