theislab / zellkonverter

Conversion between scRNA-seq objects
https://theislab.github.io/zellkonverter/
Other
151 stars 28 forks source link

"Error in .Call2("C_h5mread", filepath, name, starts, counts, noreduce, : H5Dread() returned an error" #117

Closed zipy124 closed 1 month ago

zipy124 commented 7 months ago

I'm using the same dataset as in #96 using the same settings, however It seems to fail on reading the x matrix using HDF5Array.

lupus <- readH5AD("GSE174188_CLUES1_adjusted.h5ad",verbose=TRUE,uns=c("umap","pca","neighbors"),raw=TRUE,use_hdf5=TRUE)

uns is used here to prevent an error of "Conversion Error: Conversion from numpy array type 20 is not supported" on reading the uns/rank_genes_groups as specified in my other bug report #116 .

When using use_hdf5=FALSE I get a matrix size error with size 1999 x 1.2M not matching names dim size of 1.2M.

zipy124 commented 7 months ago

Just tried with the same versions as the fix landed for #96 that is v1.11.1 with R 4.2.0 and it works, so this is presumably a regression since then.

lazappi commented 7 months ago

I'm not so sure what is happening with this one. The error you get when use_hdf5 = FALSE could be because the dataset is too large for R, but I don't know what the main error is. I'm hoping it will make more sense when I think into the other problem.

jcapelladesto commented 5 months ago

Hi,

I also got a similar error:

Error in .Call2("C_h5mread", filepath, name, starts, counts, noreduce, : H5Dread() returned an error

Could this be potentially solved using reticulate 1.35 as you mentioned in this issue (https://github.com/theislab/zellkonverter/issues/116) ?

lazappi commented 5 months ago

I'm not sure this is related but it could be worth trying. More information about the versions etc. you are using would be helpful.

lazappi commented 1 month ago

@zipy124 @jcapelladesto Is this still an issue? If not, I will close this.

jcapelladesto commented 1 month ago

You may close it, as I have stopped working on h5 format. Thank you for your interest.

Missatge de Luke Zappia @.***> del dia dv., 4 d’oct. 2024 a les 13:45:

@zipy124 https://github.com/zipy124 @jcapelladesto https://github.com/jcapelladesto Is this still an issue? If not, I will close this.

— Reply to this email directly, view it on GitHub https://github.com/theislab/zellkonverter/issues/117#issuecomment-2393516664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADG4HFRZ675GMYTRKBJN72DZZZ5UTAVCNFSM6AAAAABG2455OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGUYTMNRWGQ . You are receiving this because you were mentioned.Message ID: @.***>