-
Notifications
You must be signed in to change notification settings - Fork 94
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
JSON file cannot be written as HDF5 due to axis metadata #709
Comments
I also verified all observations have a "taxonomy" key in their metadata, and that each "taxonomy" value is a string. If taxonomy metadata was missing for an observation, the metadata defaultdict would have returned |
Issue is that The table I'm removing the bug label as this isn't a bug in that the data are represented outside of the documented expectations. However, I'm marking this as a proposed addition, specifically: catch the case where In [18]: t = biom.load_table('feature-table.biom')
In [19]: for md in t.metadata(axis='observation'):
...: md['taxonomy'] = md['taxonomy'].split('; ')
...:
In [20]: with h5py.File('asd.foo', 'w') as fp:
...: t.to_hdf5(fp, 'asd')
...: |
Relabeling as a bug. It turns out that |
Thanks for explaining, I didn't know the |
It's not special to the spec but to this implementation |
OK. |
Thanks for quick review! On Sep 26, 2016 10:33 AM, "Jai Ram Rideout" notifications@github.com
|
I have a valid JSON .biom file that cannot be written in HDF5 format due to its axis metadata. I've attached a file to reproduce the issue. I had to name it with a .txt extension so I could upload it to GitHub. AFAIK, this JSON .biom file was generated with QIIME 1 (it's used as test data in q2-types). It has observation metadata containing taxonomy assignments, where each taxonomic assignment is stored as a single string.
Tested with biom-format 2.1.5.
The text was updated successfully, but these errors were encountered: