how to read h5 file in Seurat if its structure is not like 10x h5 file structure?
0
0
Entering edit mode
2.4 years ago
fifty_fifty ▴ 60

I have an h5 file which has a different structure than it is described on the 10x website. I checked the structure with h5ls("filename.h5") and the output looks like this

enter image description here

when I try to read it in Seurat with data <- Read10X_h5("filename.h5"), this error occurs:

Error in x$exists(name) : HDF5-API Errors:
    error #000: ../../src/hdf5-1.12.0/src/H5L.c in H5Lexists(): line 961: unable to get link info
        class: HDF5
        major: Links
        minor: Can't get value

    error #001: ../../src/hdf5-1.12.0/src/H5VLcallback.c in H5VL_link_specific(): line 5198: unable to execute link specific callback
        class: HDF5
        major: Virtual Object Layer
        minor: Can't operate on object

    error #002: ../../src/hdf5-1.12.0/src/H5VLcallback.c in H5VL__link_specific(): line 5161: unable to execute link specific callback
        class: HDF5
        major: Virtual Object Layer
        minor: Can't operate on object

    error #003: ../../src/hdf5-1.12.0/src/H5VLnative_link.c in H5VL__native_link_specific(): line 337: unable to specific link info
        class: HDF5
        major: Links
        minor: Object not found

    error #004: ../../src/hdf5-1.12.0/src/H5L.c in H5L_exists(): line 3131: path doesn't exist
        class: HDF5
        major: Links

I tried to use hdf5r:

data <- H5File$new("filename.h5")

but there is another error with 'file access'

How can I read this file to create a Seurat object and do all the downstream analysis?

RNA-Seq single-cell scRNA-seq Seurat R • 2.7k views
ADD COMMENT
0
Entering edit mode

Hello I wonder if you could fix this issue. I am dealing with a quite similar issue.

ADD REPLY

Login before adding your answer.

Traffic: 1786 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6