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

how to merge 6 loom file? #74

Open
dmsalsgh97 opened this issue Apr 22, 2021 · 2 comments
Open

how to merge 6 loom file? #74

dmsalsgh97 opened this issue Apr 22, 2021 · 2 comments

Comments

@dmsalsgh97
Copy link

Hi, first of all, thanks for developing Seurat and wrappers! It is awesome.

I'm analyzing 6 samples with Seurat's SCTransform integration method.
Now, I'm trying to project velocyto's output on the umap embedding of the SCTransform integrated Seurat obj.

First, I tried to merge 6 individual .loom files generated by scvelo.py CLI on 10x output.
BUT, When I tried it following @velocyto-team/velocyto.R#54, it needs huge memory and causes MEM allocation error.
(exceeds 100Gb, and I think it is strange...)

sample1 <- ReadVelocity(file = ".../1-sample.loom")
sample2 <- ReadVelocity(file = ".../2-sample.loom")
bm <- merge(x = sample1, y = sample2, merge.data = TRUE)
Error in asMethod(object) :
Cholmod error 'out of memory' at file ../Core/cholmod_memory.c, line 146

image

My second thought was to aggregate 6 10x outputs using cellranger-aggr and run scvelo.py CLI on the aggregated 10x output and project it on seurat integrate object's umap.

Thanks,

@poddar19
Copy link

poddar19 commented Aug 4, 2021

Hi!

It's too late to reply now but providing a solution to this problem in case somebody else faces the same issue in future. You can convert the loom object to Seurat Object and then merge the two files. For example,

sample1 <- ReadVelocity(file = ".../1-sample.loom")
sample2 <- ReadVelocity(file = ".../2-sample.loom")
sample1_seurat <- as.Seurat(x = sample1)
sample2_seurat <- as.Seurat(x = sample2)
bm <- merge(x = sample1_seurat, y = sample2_seurat, merge.data = TRUE)

Let me know if this doesn't work.

@jordan841220
Copy link

@poddar19
I am wondering if batch effect in the merged object should be regress out?
The thing is that after regressing out batch effect with Seurat Integration process, I lost my spliced and unspliced assays.
What do you think?

Thanks in advance!

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

3 participants