-
Notifications
You must be signed in to change notification settings - Fork 95
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
TypeError: the JSON object must be str, bytes or bytearray, not File #965
Comments
Thanks @thomasstjerne! That's odd, is there any chance the file could be uploaded? Just as a heads up, I'm out of the office today so may be delayed but I'll try and look as quick as possible |
Thanks for the quick reply @wasade . |
Thank you, @thomasstjerne. How was this file created? It looks like the
The failure itself is occurring here as the dataset is empty, and that edge case isn't properly being tested for. The validator allows this as the validator is just looking at the structure of the file, not examining the contents. The contents appear malformed as there doesn't appear to be information associated with |
Thank you @wasade.
Wonder if there is an example file somewhere with such a phylogeny I could look into? Thanks again for your time. |
Hi @thomasstjerne, Thanks! I see the data now, it's a bit awkward to access with
We currently assume that the |
Our tests for Is it possible to share the javascript code which uses h5wasm that created the table?
|
Thanks again @wasade I am happy to do an isolated code snippet for just the hdf5 conversion if this is helpful for you? |
@thomasstjerne, that is super cool, thank you for sharing! It seems like it may be a basis for a general-purpose biom Table object in javascript too! Since there is a work around here, I'm going to keep this issue open and defer resolution for a future release. |
Hi
I am try to convert a hdf5 biom 2.1 file using
biom convert -i data.biom -o table.from_biom.txt --to-tsv
I checked that the file validates:
But I get the following error:
TypeError: the JSON object must be str, bytes or bytearray, not File
Any ideas? Full stack trace blow:
The text was updated successfully, but these errors were encountered: