-
Notifications
You must be signed in to change notification settings - Fork 156
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
adata.uns dataframe gets converted into numpy.ndarray when saving and loading h5ad #134
Comments
Problem is that we can't properly deal with dataframes in It would help a lot, also in reworking the results of |
As soon as this is implemented I can also allow |
A dataframe should be an h5py group (you can make a class Optimally, this would also directly translate to the zarr representation. I'd expect that we can abstract most of the formatting away and decide at a very late point whether to channel it to zarr or hdf5. @tomwhite, @ryan-williams: do we have "Groups" with attributes in zarr, too? How are you currently dealing with the |
Once this is in-place I can use it to improve the dot plots |
@falexwolf the short answer is that we are not loading sparse single cell data from Zarr - it is all dense at the moment. I think there is a good case for storing data in a sparse representation in Zarr though. |
OK, got it! We achieve much faster loading and writing using the sparse representations. That's something you'd also observe for zarr, I think. |
Fixed by #167. |
Hello, I am trying to use
adata.uns
to store a dataframe with data of a different shape thanadata.X
. I am able to put a dataframe there and use it with no problem, however when I save the adata usingadata.write('./test.h5ad')
and then load it again withloaded_data = anndata.read_h5ad('./test.h5ad')
the dataframe stored inadata.uns
is loaded as a numpy array. This is a big problem for me because I lose the headers. Is this the intended behavior or a bug? If it's the intended behavior, the documentation should be made clearer. See screenshot below showing what I get.The text was updated successfully, but these errors were encountered: