Question: Convert a Seurat object to .h5ad file
1
gravatar for gaelgarcia05
12 months ago by
gaelgarcia05210
UK
gaelgarcia05210 wrote:

Hi,

I'm trying to build a single-cell browser using cellxgene from the Chan-Zuckerberg Intiative. However, I need to have a .h5ad file from the annpdata ackage in Python. I've done all my analysis in R, mainly using Seurat.

I was wondering if there's a way to convert a Seurat object to .h5ad within R. Seurat team seems to be working on this but as of Aug 2019 it's non-functional.

Thanks.

scanpy seurat rna-seq R single-cell • 2.6k views
ADD COMMENTlink modified 8 months ago by mmfiruleva10 • written 12 months ago by gaelgarcia05210
3
gravatar for jared.andrews07
12 months ago by
jared.andrews076.9k
Memphis, TN
jared.andrews076.9k wrote:

Looks like the way to do it is to write to loom format via loomR, then read that into anndata to be written as an .h5ad file.

Single cell folks need to a pick a file format/structure and stick with it.

ADD COMMENTlink written 12 months ago by jared.andrews076.9k
1

Could not have said it better. Thanks!

ADD REPLYlink written 12 months ago by gaelgarcia05210
1
gravatar for shoujun.gu
12 months ago by
shoujun.gu310
shoujun.gu310 wrote:

The best way now is to manually create your h5ad from seurat objects, such as put all normalized value as adata.X , raw counts to adata.raw, all gene annotations to adata.var and all cell annotations to adata.obs, etc

Or use scanpy from the very beginning.

ADD COMMENTlink written 12 months ago by shoujun.gu310
1
gravatar for mmfiruleva
8 months ago by
mmfiruleva10
mmfiruleva10 wrote:

In R, you can convert Seurat object to h5ad and vice versa using sceasy.

ADD COMMENTlink written 8 months ago by mmfiruleva10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 828 users visited in the last hour