Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subsetting a Seurat object #2287

Closed
ADvorkinGheva opened this issue Nov 4, 2019 · 1 comment
Closed

Subsetting a Seurat object #2287

ADvorkinGheva opened this issue Nov 4, 2019 · 1 comment

Comments

@ADvorkinGheva
Copy link

ADvorkinGheva commented Nov 4, 2019

Greetings,

I have a Seurat object, which has meta.data
When I try to subset the object, this is what I get:

subcell<-subset(x=myseurat,idents = "AT1")
subcell@meta.data[1,]

orig.ident nCount_RNA nFeature_RNA Diagnosis Sample_Name Sample_Source
NA              3002         1640      NA        NA          NA
Status percent.mt nCount_SCT nFeature_SCT seurat_clusters population
NA       NA       5289         1775              NA       NA
celltype
NA

However, if I examine the same cell in the original Seurat object (myseurat), all the information is there.

myseurat@meta.data[which(myseurat@meta.data$celltype=="AT1")[1],]

                        orig.ident nCount_RNA nFeature_RNA Diagnosis
F00409_AAGACCTCAAAGGTGC     F00409       3002         1640   Control
                        Sample_Name Sample_Source  Status percent.mt nCount_SCT
F00409_AAGACCTCAAAGGTGC      VUHD69    Vanderbilt Control   1.265823       5289
                        nFeature_SCT seurat_clusters population celltype
F00409_AAGACCTCAAAGGTGC         1775              19 Epithelial      AT1

I will appreciate any advice on how to solve this.

Thank you very much!

Regards,
Anna

@andrewjkwok
Copy link

Hi - I'm having a similar issue and just wanted to check how or whether you managed to resolve this problem? Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants