Entering edit mode
16 months ago
Andy
▴
120
Good afternoon,
I meet a problem to merge a large amount of Seurat objects together, when I use merge function I encountered an error message that
Error: vector::reserve
My code is:
merge<-merge(x=object[[1]], y=object[-1])
I was thinking probably there is something wrong with the data, however, I randomly pick some objects and run same code, then they successfully merged. Then I suspicious if the merge function has limit? I am wondering what is the solution to merge my objects, and run following analysis.
Best
Andy
Moreover, the error message said:
if you have different Seurat objects and the sample are processed in different batches, you may have cells with the same barcode across samples. You may need to prefix the barcode with the sample name.
or you can use https://samuel-marsh.github.io/scCustomize/reference/Merge_Seurat_List.html
The merge_seurat_list worked for my data! Thanks a lot for your answer!