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

添加富集分析结果后热图颜色出现问题 #87

Open
zhongguozhiwang opened this issue Aug 14, 2024 · 2 comments
Open

添加富集分析结果后热图颜色出现问题 #87

zhongguozhiwang opened this issue Aug 14, 2024 · 2 comments

Comments

@zhongguozhiwang
Copy link

您好,我在绘制monocle2的差异热图时,添加富集分析结果后,热图的颜色就不太正常了,不添加富集分析结果就不会这样,请问这可能是什么原因导致的呢?
p1 <- visCluster(object = df,
plot.type = "both",
column_names_rot = 45,
show_row_dend = F,
markGenes.side = "left",
annoTerm.data = enrich,
go.col = rep(jjAnno::useMyCol("calm",n = 5),each = 5),
add.bar = T,
line.side = "left")

image

@junjunlab
Copy link
Owner

看不出来,你可以把数据代码发我看看

@zhongguozhiwang
Copy link
Author

看不出来,你可以把数据代码发我看看

谢谢!在Rstudio中热图颜色显示不出来,但是保存到本地的pdf就是正常的,很奇怪。
df <- readRDS('df.rds')
library(ClusterGVis)
library(org.Mm.eg.db)

enrich <- enrichCluster(object = df,
OrgDb = org.Mm.eg.db,
type = c("BP"),
organism = "mmu",
pvalueCutoff = 0.5,
topn = 5,
seed = 5201314)

p1 <- visCluster(object = df,
plot.type = "both",
column_names_rot = 45,
show_row_dend = F,
markGenes.side = "left",
annoTerm.data = enrich,
go.col = rep(jjAnno::useMyCol("calm",n = 5),each = 5),
add.bar = T,
line.side = "left")
p1
df.zip

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

2 participants