Seurat: Merging more than two seurat objects

Created on 16 Aug 2018  路  4Comments  路  Source: satijalab/seurat

Is there a way to merge 4 seurat objects?
MergeSeurat is for two objects. I know that there is also AddSamples but this add a sample without creating a Seurat Object, my point is that I have 4 dataset, I want to create a Seurat object for each so I can filter the cells for each object then merge them all together. is there a way to do that?
Thank you all

Analysis Question duplicate

Most helpful comment

@EDYAC I have some code that can help you merge>2 objects 馃悏 You can find it here!

All 4 comments

@EDYAC I have some code that can help you merge>2 objects 馃悏 You can find it here!

I think the Reduce function can work well, for example:
{r} Reduce(function(x,y) merge(x,y,add.cell.ids = c([email protected],[email protected])) , Seurat.list)
just input a list of seurat objects, and it seems that MergeSeurat function is replaced by merge.

@Simon6089 there's no need to do this, y can be a list of Seurat objects (see the docs for merge)

Was this page helpful?
5 / 5 - 1 ratings

Related issues

farhanma picture farhanma  路  3Comments

fly4all picture fly4all  路  3Comments

whitleyo picture whitleyo  路  3Comments

RuiyangLiu94 picture RuiyangLiu94  路  3Comments

Biogitte picture Biogitte  路  3Comments