FIltering Seurat clusters
1
0
Entering edit mode
18 months ago
roberts ▴ 60

Hello I am trying to pull out CD8 T cell clusters from my seurat object. I am using the code

CD8 <- CH005@meta.data[“seurat_clusters” %in% c(1,2,3,7,8),]

But it keeps resturning an empty table. Does anyone have any suggestions? Thanks!

RNA-Seq Seurat R 10x • 1.8k views
ADD COMMENT
2
Entering edit mode
18 months ago

Instead of accessing the object slots directly, you can use the subset function.

CD8 <- subset(CH005, subset=seurat_clusters %in% c(1, 2, 3, 7, 8))
ADD COMMENT

Login before adding your answer.

Traffic: 1909 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6