scverse / anndataR

AnnData interoperability in R
https://anndatar.data-intuitive.com
Other
57 stars 8 forks source link

Error accessing `X` in `HDF5AnnData` when empty #164

Open lazappi opened 10 months ago

lazappi commented 10 months ago

If the X slot in an HDF5AnnData is empty, trying to access it gives this error:

Error in rhdf5::h5readAttributes(file, name) : 
  Object /X does not exist in this HDF5 file.

Needs to be handled in some way. Should probably be filled in the same way as Python when creating a new H5AD file.