-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read error with R's rhdf5? #171
Comments
We use the standard hdf5 libraries for writing and reading the h5 files, most likely the same libraries used in R. I'd be happy to test the h5 files to see if there is something weird in reading them in R. |
Thanks for getting back to me! EDIT: Turns out this was unrelated to the issue reported here. An update to |
I've been able to confirm that the .h5 parses just fine on R 3.4.1 but fails on R 3.4.3 (linux only, parses fine on OSX R 3.4.3), despite identical However, on the same systems, the issue only occurs with kallisto .h5 files, whereas .h5 files created by the wasabi package parse fine on both systems. So clearly there IS something about the kallisto version of abundance.h5 files that is different from the wasabi version of abundance.h5 and that difference upsets (some?) newer versions of R. |
ouch, closing this issue for now. |
I am posting this here for anybody else who arrives at this thread as a result of the same problem. I have been getting the exact same error message as per fruce-ki (as elaborated here: grimbough/rhdf5#46 (comment)), namely:
I have solved the issue by setting up a conda environment for Kallisto, which has the following installed packages:
I had to re-generate the h5 files with Kallisto in this environment, and then read them into R via tximport (R also in conda). R
This does not explain where exactly was the problem, but provides a solution for others. Further update:The problem appears to be specifically related to Kallisto and how it generates the h5 files under different system configurations / settings. |
Hello,
Please help. Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
See if your h5 files are being used by other programs, your error is different. |
Encountered the same read failed problem using sleuth 0.30.0. Opening and closing the h5 file with h5py in python seems to solve this problem. Seems that Kallisto did not close the file correctly. Corresponds to kevinblighe reference of the file closing issue posted at rhd5 lib. |
Hello,
I am trying to parse the
abundance.h5
into an R session.Using
h5dump('abundance.h5')
from therhdf5
package, all I get is multiple rows of this:followed by the structure of the Kallisto output but with all elements containing nothing but
NULL
.So I thought I'd try Kallisto's built-in parser:
kallisto h5dump abundance.h5 -o ./test
and surely enough I get a new directory full of bootstrap files in plaintext that all look perfectly fine, so the data is definitely in there.The R function definitely works with
.h5
files from a different source so I'm working on the assumption that therhdf5
package is less likely to be the one at fault.Is there any chance that the h5 created by kallisto is somehow not correct/standard and that your own parser simply knows how to get around that?
This is all on Linux with up-to-date R and packages, as well as the latest Kallisto (0.44).
Cheers!
The text was updated successfully, but these errors were encountered: