Entering edit mode
2 hours ago
Picasa
▴
650
Hi,
I would like to create a heatmap of the top 20 DEGs for each of my 5 clusters. However, there are duplicates among these 100 genes, and the DoHeatmap() function only plots unique genes.
I have a Seurat v5 object.
Is there a solution to this issue?
Why are there duplicates? What do you mean? Add code and plots to illustrate a problem.
Example:
For instance the gene A is expressed in cluster1 and cluster2 but after doing:
Only one A is retained for the heatmap:
I would like both A to be retained.
I bet you ran
FindAllMarkers
on your dataset and ended up with the same genes found as DE in multiple clustersYes, right
Finding DEGs is not a finality, what do you want to show on the heatmap ? Expression of these genes in each cluster I presume. Then, calculate the expression of each gene in each cluster to plot a heatmap of gene expression.
What you get in the output of
FindAllMarkers
is a logFC between one cluster to the rest of the cells, indeed some genes can be makers in different clusters. But you cannot plot the output ofFindAllMarkers
as it is on an heatmap