作者 | 单细胞天地小编 柠檬不酸

准备
官网上PC数目的确定(https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html)
1library(Seurat)
2
3load(file = 'Cluster_seurat.Rdata') # data.filt
4seurat_data
方法一:DimHeatmap函数
1# Explore heatmap of PCs
2DimHeatmap(seurat_data, dims = 1:6, cells = 500, balanced = TRUE)
1DimHeatmap(seurat_data , dims = 7:12, cells = 500, balanced = TRUE)
方法二:ElbowPlot函数
1# Plot the elbow plot
2ElbowPlot(object = seurat_data , ndims = 30)
方法三:JackStrawPlot函数
1# Slow slow slow