-
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
Unable to use biom without h5py installed #896
Comments
We made h5py a required dependency in #824 but it looks like there are lingering historical checks that we need to address. So I agree this is unexpected, however I think the correct course of action is to remove that check in I would greatly prefer to retain h5py as a required rather than optional dependency as the vast majority of BIOM use is through format version 2.1. Is there a specific usecase where h5py is not viable? |
I thought it would be easy to export HDF5 by default, and fall back on JSON if the dependencies were missing. Without knowing much about the dependency stack that seemed like a plausible situation - especially on less mainstream platforms. I agree if HDF5 is now considered a hard requirement, then that code in |
That certainly makes sense :) Okay, so I'll line up addressing that code in To be fair, the IO mechanisms for BIOM are not streamlines in my opinion, but I haven't yet found time to do it. I just realized this wasn't codified as an issue, so I opened #897 |
Current behaviour having used conda/pip to install biom 2.1.14 and h5py 3.8.0 on macOS, and then deliberately removing h5py:
Expected behaviour:
Given the graceful failure code here https://github.com/biocore/biom-format/blob/2.1.14/biom/util.py#L24 I expected this to return False.
i.e. Should work but only be able to use JSON BIOM v1 files.
The text was updated successfully, but these errors were encountered: