Entering edit mode
3.4 years ago
sam
▴
30
Hi,
I am working 10x single cell data and I am using seurat package.
I am able to get the number of cells per cluster using the following code:
> n_cellsinsamples <- FetchData(seurat_integrated, vars = "ident") %>%
> dplyr::count(ident) %>% tidyr::spread(ident, n)
But I would like to get the number of genes expressed per cell cluster. Can anyone suggest me how to do this?
Thanks!
No need to use 2 different libraries to get the number of cells in each cluster.
table(seurat_integrated@meta.data$integrated_snn_res.1.8)
, whereintegrated_snn_res.1.8
is the clustering column yourIdents(seurat_integrated)
points to.