Skip to content

Commit

Permalink
explicitly convert adata.uns
Browse files Browse the repository at this point in the history
Workaround for theislab/anndata2ri#57
  • Loading branch information
scottgigante committed Nov 2, 2020
1 parent 056c6ec commit 0e2cfdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scprep/run/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def _pynull2rpy(pyobject):
def _rpysce2py(robject):
if utils._try_import("anndata2ri"):
robject = anndata2ri.rpy2py(robject)
for k, v in robject.uns.items():
robject.uns[k] = rpy2py(v)
return robject


Expand Down

0 comments on commit 0e2cfdf

Please sign in to comment.