This is a test version of Biostars. For the public version, visit https://www.biostars.org.
seurat-creating heatmaps

I have three tables (results from differential expression in seurat): Table 1 is for mutant 1 vs WT Table 2 is for mutant 2 vs WT Table 3 is for mutant 3 vs WT

I would like to create a heatmap that shows all the genes combined(mutant 1 + mutant2 + mutant3) and is grouped by the mutants (mutant 1, mutant2 and mutant 3). So, something like this: instead of cluster though, i want it to be divided by mutant 1, 2 and 3

seurat heatmaps

1 answer

That figure was generated using seurat's DoHeatmap. Assuming mutant1,mutant2,mutant3 are the lists of genes and mutants is an existing column in your seurat meta.data table, you can:

genes_2_include <- c(mutant 1,mutant2,mutant3)
DoHeatmap(object, features = genes_2_include, group.by = "mutants", ...)

Log in to answer this question.