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
@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)
Most helpful comment
@EDYAC I have some code that can help you merge>2 objects 馃悏 You can find it here!