各个单细胞亚群独立在两个分组做差异分析-腾讯云开发者社区-腾讯云 (tencent.com)
-
- Idents(sce) = paste0('c',sce$group )
- table(Idents(sce))
- degs = lapply(unique(sce$celltype), function(x){
- FindMarkers(sce[,sce$celltype==x],ident.1 = 'c1',
- ident.2 = 'c2')
- })
- x=degs[[1]]
- do.call(rbind,lapply(degs, function(x){
- table(x$avg_log2FC > 0 )
- }))