loomR icon indicating copy to clipboard operation
loomR copied to clipboard

How to create seurat object from a loom file directly??

Open shaaaarpy opened this issue 6 years ago • 5 comments

I have a loom file and want to perform differential expression analysis. How should i proceed?

shaaaarpy avatar Nov 28 '18 15:11 shaaaarpy

@shaaaarpy: see https://satijalab.org/loomR/loomR_tutorial.html#loomr-and-seurat

mschilli87 avatar Nov 28 '18 18:11 mschilli87

This tutorial does not show how to create seurat object from loom object. Can you please elaborate on this?

shaaaarpy avatar Nov 28 '18 19:11 shaaaarpy

The tutorial links to this vignette showing how to tun Seurat on loom files. There is no need to create a Seurat object as loom files operate by memory-mapping data on disk while a Seurat object would be loading all data to RAM.

mschilli87 avatar Nov 28 '18 19:11 mschilli87

@shaaaarpy I have the same question as you. I also need to convert loom file to seurat object. Do you find any solutions?

Sophia409 avatar Mar 05 '19 08:03 Sophia409

To convert a loom file to a seurat object, you must first load the loom file using the connect() function in the loomR package, and then convert it to a seurat object using the as.Seruat() function in the Seurat package.

Example: loomasseurat<-as.Seurat(myloomfile,cells="CellIDs",features="Gene")

danaschwalbe avatar Jan 21 '21 23:01 danaschwalbe