Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindAllmarkers => Doheatmap => Heterogeneous clusters #9661

Open
karabicicim opened this issue Jan 31, 2025 · 0 comments
Open

FindAllmarkers => Doheatmap => Heterogeneous clusters #9661

karabicicim opened this issue Jan 31, 2025 · 0 comments

Comments

@karabicicim
Copy link

Dear Seurat team,

I would like to ask about my problem with the heatmap plot. After I created a subset for my neutrophil clusters find markers using FindAllmarkers and create heatmap. Surprisingly I observed a heterogenous gene expression patterning inside clusters even when I increased my resolution it still looked the same. How can I fix this? I checked old issues but can not find specific ones. If it is already been asked before can anyone guide me from there?

Thank you!

Specially Cluster 0 has this heterogenous gene expression mostly, but also 2 and 4 have them.

Image

When ı increase res still the same problem.

Image

library(MAST)
Idents(harmony_Neu) <- "SCT_snn_res.1.4"
levels(harmony_Neu)
DefaultAssay(harmony_Neu) <- "RNA"
harmony_Neu <- NormalizeData(harmony_Neu)
#findmarkers
harmony_Neu_1.4<- FindAllMarkers(object = harmony_Neu, only.pos = TRUE, min.pct = 0.25, logfc.threshold = 0.25, test.use="MAST") %>% dplyr::filter(p_val_adj<0.05)

#top20
harmony_Neu_1.4_top20 <- harmony_Neu_1.4 %>% group_by(cluster) %>% top_n(n = 20, wt = avg_log2FC)
write.csv(harmony_Neu_1.4_top20, file = "harmony_Neu_1.4_top20.csv", row.names = TRUE)

p <-DoHeatmap(harmony_Neu, features = harmony_Neu_1.4_top20$gene)
plot(p)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant