Hello,
I am trying to convert my Seurat Object to a Loom file, and realized that the UMAP embeddings do not automatically appear in the col_attrs. I added them manually, but wonder if there is a setting I am missing?
Did not result in embeddings:
loom.obj <- SeuratDisk::as.loom(Seurat.Obj, filename = "seuratobject.loom", overwrite = TRUE)
What I ended up doing:
umap <- as.data.frame(Seurat.Obj@reductions$umap@cell.embeddings)
Seurat.Obj <- AddMetaData(Seurat.Obj, umap)
loom.obj <- SeuratDisk::as.loom(Seurat.Obj, filename = "seuratobject.loom", overwrite = TRUE)