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

No cell overlap between new meta data and Seurat object #8

Open
handesome opened this issue May 3, 2024 · 2 comments
Open

No cell overlap between new meta data and Seurat object #8

handesome opened this issue May 3, 2024 · 2 comments

Comments

@handesome
Copy link

Hi!
Thank you for developing the package!when I download human_myeloid_seurat_obj.rds and run the vignette
data_S$celltype <- cluster_relabel[as.character(data_S$cluster)]
error: No cell overlap between new meta data and Seurat object
so how to solve the problem?Thanks!!

@RihaoQu
Copy link
Collaborator

RihaoQu commented May 3, 2024

Hi, if you are using Seurat v5, you can try to update the object by

library(SeuratObject)
data_S = SeuratObject::UpdateSeuratObject(data_S)

Then, change the following line in the first code block to

data_S@meta.data$celltype <- cluster_relabel[as.character(data_S$cluster)]

Hope this can solve the issue.

@handesome
Copy link
Author

Thanks! it works now/

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