loomR icon indicating copy to clipboard operation
loomR copied to clipboard

LoomR tutorial doesn't seem to work.

Open alexandruioanvoda opened this issue 4 years ago • 4 comments

Hi! Hope this finds you well!

Is the LoomR tutorial not up-to-date anymore? Had a bug right in the tutorial: https://satijalab.org/loomR/loomR_tutorial.html

> library(loomR)
Loading required package: R6
Loading required package: hdf5r
> library(Seurat)
> hca <- connect(filename = "cc95ff89-2e68-4a08-a234-480eca21ce79.homo_sapiens.loom", mode = "r+")
> NormalizeData(object = hca, chunk.size = 1000, scale.factor = 10000, display.progress = TRUE)
Warning: The following arguments are not used: chunk.size, display.progress
Suggested parameter: verbose instead of display.progress

Error in as(object = data, Class = "dgCMatrix") :
   no method or default for coercing “loom” to “dgCMatrix”

I'm essentially just trying to process/analyze the Human Cell Atlas Immune Census data (the file is here: https://data.humancellatlas.org/project-assets/project-matrices/cc95ff89-2e68-4a08-a234-480eca21ce79.homo_sapiens.loom), so if you've got any alternative tutorial for that, I'd welcome any help!

alexandruioanvoda avatar Mar 28 '20 23:03 alexandruioanvoda

@alexandruioanvoda please let me know if you managed to work your way around this

MzwaneleN avatar May 06 '20 15:05 MzwaneleN

@MzwaneleN I have not, is there any new/updated tutorial?

alexandruioanvoda avatar May 07 '20 11:05 alexandruioanvoda

@alexandruioanvoda unfortunately it's still the same tutorial

MzwaneleN avatar May 08 '20 03:05 MzwaneleN

Hi! Before trying the NormalizeData() function, you should try the following:

hca<-as.Seurat(hca,cells="CellID",features="Gene")

this will make the loom file a seurat object. The connect() function simply loads the loom file into R. Hope this helps!

danaschwalbe avatar Jan 21 '21 23:01 danaschwalbe