You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My raw anndata object can read and write normally. While after running dynamo flows, error occurs when I save anndata object using the function adata.write_h5ad of scanpy.
The first error is adata.var that Can't implicitly convert non-string objects to strings. But after I adjusted all the columns to strings, I could save them as normal.
The second error is adata.uns, just like follows:
{
"name": "IORegistryError",
"message": "No method registered for writing <class 'collections.OrderedDict'> into <class 'h5py._hl.group.Group'>",
"stack": "---------------------------------------------------------------------------
IORegistryError Traceback (most recent call last)
Cell In [55], line 1
----> 1 adata1.write_h5ad("MP_sub_dynamo.h5ad")
My raw anndata object can read and write normally. While after running dynamo flows, error occurs when I save anndata object using the function adata.write_h5ad of scanpy.
The first error is adata.var that Can't implicitly convert non-string objects to strings. But after I adjusted all the columns to strings, I could save them as normal.
The second error is adata.uns, just like follows:
{
"name": "IORegistryError",
"message": "No method registered for writing <class 'collections.OrderedDict'> into <class 'h5py._hl.group.Group'>",
"stack": "---------------------------------------------------------------------------
IORegistryError Traceback (most recent call last)
Cell In [55], line 1
----> 1 adata1.write_h5ad("MP_sub_dynamo.h5ad")
--> 111 write_elem(f, "uns", dict(adata.uns), dataset_kwargs=dataset_kwargs)
IORegistryError: No method registered for writing <class 'collections.OrderedDict'> into <class 'h5py._hl.group.Group'>"
}
Have you encountered similar problems?
The text was updated successfully, but these errors were encountered: