Create a new seurat object using one cluster identified in a previous seurat object
1
0
Entering edit mode
14 months ago
Fernanda • 0

Hello, I would like to create a separated seurat object using only 1 cluster previous identified in the same seurat object to explore different subtypes on NK cell phenotypes inside this cluster. I am not fcompletely familiar with R and I anot sure what code should I use. Can anyone help me? Thank you

object seurat Create clusterization • 688 views
ADD COMMENT
0
Entering edit mode
14 months ago
Ribo ▴ 40

You can subset your data based on any meta.data column. For example, if your clusters are stored in my_clusters column, run:

new_seurat_object <- original_seurat_object %>% subset(my_clusters == 'cluster_name')

Similarly, you can subset your data based on cell identity:

new_seurat_object <- original_seurat_object %>% subset(idents = 'cluster_name')
ADD COMMENT

Login before adding your answer.

Traffic: 2467 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