单细胞聚类resolution参数的选择

在进行细胞聚类时有两个参数的选择对下游分析的结果影响很大

一个是纳入分析的PCs数,也就是dims参数,选择方法见 关于“数据的维度”(dims参数)的选择

另一个是resolution参数,官方推荐根据测到的细胞数进行选择,但是其选择没有具体的标准,可以使用clustree包进行可视化,可以遍历不同resolution取值时细胞分群情况作为参考。

# Check clustering stability at given resolution 
# Set different resolutions 
res.used <- seq(0.1,1,by=0.2)
res.used
# Loop over and perform clustering of different resolutions 
for(i in res.used){
 sce <- FindClusters(object = sce, verbose = T, resolution = res.used)
}
# Make plot 
library(clustree)
clus.tree.out <- clustree(sce) +
 theme(legend.position = "bottom") + 
 scale_color_brewer(palette = "Set1") +
 scale_edge_color_continuous(low = "grey80", high = "red")

clus.tree.out

%E5%8D%95%E7%BB%86%E8%83%9E%E8%81%9A%E7%B1%BBresolution%E5%8F%82%E6%95%B0%E7%9A%84%E9%80%89%E6%8B%A9%20d96492910b964a6196de5b98861810c8/Untitled.png

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容