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

Need more information about how to deal multi-Seurat-samples #1

Open
River366 opened this issue Jan 13, 2023 · 2 comments
Open

Need more information about how to deal multi-Seurat-samples #1

River366 opened this issue Jan 13, 2023 · 2 comments

Comments

@River366
Copy link

Hi there, first let me extend my thanks for developing this useful package! But I feel some confused about how to use the package, would you mind provide more information about how to deal with multi-samples Seurat List (like the fig) before integration. I believe that will make convenience for all users!
3403AC0D@1091C567 4FEEC06300000000

Thank you for your guidance.

@renjun0324
Copy link
Owner

renjun0324 commented Jan 21, 2023

@River366
Thank you for using MURP.
Just murping the normalized data in seurat and rebuild the seurat object. My test code is as follows:

library(Seurat)
library(MURP)
library(dplyr)
data(sdata)

# 1. seurat object for test
obj_1 = CreateSeuratObject(t(sdata))
obj_2 = CreateSeuratObject(t(sdata))

# 2. normalize data
obj_1 = NormalizeData(obj_1)
obj_2 = NormalizeData(obj_2)

# 3. murp
murp_1 = MURP(Data = as.matrix(obj_1@assays$RNA@data) %>% t, fast = TRUE)
murp_2 = MURP(Data = as.matrix(obj_2@assays$RNA@data) %>% t, fast = TRUE)

# 4. create new seurat object
new_obj_1 = CreateSeuratObject(murp_1$Recommended_K_cl$centers)
new_obj_2 = CreateSeuratObject(murp_2$Recommended_K_cl$centers)

# 5. combine...

But cell labels in individual samples will not correspond after murp. I assign a new label to each murp by calculating the ratio.

@River366
Copy link
Author

Thanks for you help!
Happy Chinese New Year!

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