Question: FIltering Seurat clusters
0
gravatar for roberts
7 weeks ago by
roberts30
roberts30 wrote:

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!

seurat rna-seq R 10x • 163 views
ADD COMMENTlink modified 7 weeks ago by rpolicastro3.9k • written 7 weeks ago by roberts30
1
gravatar for rpolicastro
7 weeks ago by
rpolicastro3.9k
Bloomington, IN
rpolicastro3.9k wrote:

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 COMMENTlink modified 7 weeks ago • written 7 weeks ago by rpolicastro3.9k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2688 users visited in the last hour
_