Converting hdf5 file to loom file
2
Hello,
I am currently processing the single cell data. I have hdf5 file, however, I want the loom file for downstream analysis. Can anyone please suggest if there is a way to convert hdf5 to loom file format?
Any help is highly appreciated.
Thanks in advance.
single-cell
python
scvelo
RNA
• 2.2k views
You can use Seurat
and LoomExperiment
or sceasy
to convert hdf5 file into loom file.
library(Seurat)
library(sceasy)
library(reticulate)
library(LoomExperiment)
#Creating Seurat object
data <- Read10X_h5("filtered_feature_bc_matrix.h5")
data <- CreateSeuratObject(counts=data, project="test_project")
#Converting into SingleCellExperiment object
data.sce <- as.SingleCellExperiment(data)
#Converting SCE object into loom
data.loom <- SingleCellLoomExperiment(data.sce)
OR
sceasy::convertFormat(data.sce, from="sce", to="loom",
outFile='data.loom')
•
link
15 months ago by
bk11
★
3.0k
Hi,
Have you find a way to convert hdf5 file to loom file? Many thanks in advance!
Best,
Mingxuan
Login before adding your answer.
Traffic: 1573 users visited in the last hour
Thanks so much for your reply! It works for me