Closed Hrovatin closed 3 years ago
Minimal example to reproduce:
#import numpy as np
import scanpy as sc
import scIB
#import anndata2ri
#anndata2ri.activate()
#import rpy2.robjects as ro
#ro.globalenv['x'] = np.ones((10, 10))
ad = sc.datasets.pbmc68k_reduced()
something_proper = scIB.metrics.kBET(ad, 'louvain', 'phase')
@LuckyMD Can you close this one too, it should be fixed in the master branch.
You guys might consider adding the snippet above as a unit test for kBET though, apparently the existing test didn't catch this one.
Good point and thanks for the minimal example. We don't yet have proper kbet testing, as that requires an R installation, but once that is fixed, we'll update
Thanks @gokceneraslan! @mumichae is now tracking this in #270
Thanks!
After installing latest master of scIB I get this error:
I have tried importing numpy arrays into r as done in the function in the same env on the same server node, but there it had worked. I have also tried adding activate numpy before every activate anndata call in scIB code (as suggested here https://github.com/theislab/anndata2ri/issues/50 ), but it did not work either.