如何在seurat dimheatmap函数中包括传奇

发布于 2025-02-11 20:03:35 字数 163 浏览 6 评论 0原文

是否有一种一般的方法可以在Seurat图中包含传说?例如,如果我的代码是,

DimHeatmap(norm_data3, dims = 1, cells = 500, balanced = TRUE)

我该如何包含与PCA组件值相对应的颜色的传奇?

Is there a general way to include legends in Seurat graphs? For example, if my code is,

DimHeatmap(norm_data3, dims = 1, cells = 500, balanced = TRUE)

how can I include a legend with color corresponding to value of PCA component?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甩你一脸翔 2025-02-18 20:03:35

有点模糊,但是您应该设置fast = false

如果为true,请使用图像生成图;比使用ggplot2快,但是
无法自定义

是一个可再现的示例,使用pbmc_small来自seurat pacakage的数据集:

library(Seurat)
#> Warning: package 'Seurat' was built under R version 4.1.2
#> Attaching SeuratObject
#> Attaching sp
data("pbmc_small")
DimHeatmap(pbmc_small, dims = 1, cells = 500, balanced = TRUE, nfeatures = 4, fast = FALSE)
#> Warning: Requested number is larger than the number of available items (80).
#> Setting to 80.

“”

在2022-06-30创建的 reprex package (v2.0.1)< /sup>

It is a bit vague, but you should set fast = FALSE:

If true, use image to generate plots; faster than using ggplot2, but
not customizable

Here is a reproducible example using the pbmc_small dataset from the Seurat pacakage:

library(Seurat)
#> Warning: package 'Seurat' was built under R version 4.1.2
#> Attaching SeuratObject
#> Attaching sp
data("pbmc_small")
DimHeatmap(pbmc_small, dims = 1, cells = 500, balanced = TRUE, nfeatures = 4, fast = FALSE)
#> Warning: Requested number is larger than the number of available items (80).
#> Setting to 80.

Created on 2022-06-30 by the reprex package (v2.0.1)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文