seurat-object icon indicating copy to clipboard operation
seurat-object copied to clipboard

SeuratObject::merge - collapse option mentioned in documentation but not yet implemented

Open adam-cornwell opened this issue 1 year ago • 4 comments

Seurat and SeuratObject 5.0.1 installed from CRAN. Attempting to merge SeuratObjects with "collapse=TRUE" results in error "Collapsing layers is not yet supported". I can see also in the current GitHub source that the functionality is not yet implemented. However, the documentation in the current release version (from "?merge.Seurat") does not indicate that the option does not yet exist and that it will throw an error.

adam-cornwell avatar Dec 20 '23 23:12 adam-cornwell

I meet the same problem

zty1161103901 avatar Dec 26 '23 04:12 zty1161103901

Same here, anyone found a solution yet ? Thanks.

aditisk avatar Apr 03 '24 18:04 aditisk

We also hit this problem. I had to write code to undo the layer splitting (which is unfortunately now the default) because many other tools that read seurat objects dont properly interact with layers.

Are there plans to support collapse=FALSE for merge()?

bbimber avatar May 30 '24 16:05 bbimber

seuratObj[["RNA"]] <- JoinLayers(seuratObj[["RNA"]]) should work for this task.

andrei-stoica26 avatar Aug 15 '24 06:08 andrei-stoica26