Depending on whether a list is named or not reticulate converts it to either a Python list or a Python dict. For anndata v0.7.4 which we are currently using this doesn't matter but for v0.7.5 having a list in the uns slot is an issue.
To avoid this need name any unnamed items in uns_list (with a message) and convert it to a dict using reticulate::dict(). This should then be store in adata$uns rather than adata$uns$data as we do now.
Depending on whether a list is named or not reticulate converts it to either a Python
list
or a Pythondict
. For anndata v0.7.4 which we are currently using this doesn't matter but for v0.7.5 having alist
in theuns
slot is an issue.To avoid this need name any unnamed items in
uns_list
(with a message) and convert it to adict
usingreticulate::dict()
. This should then be store inadata$uns
rather thanadata$uns$data
as we do now.