icbi-lab / infercnvpy

Infer copy number variation (CNV) from scRNA-seq data. Plays nicely with Scanpy.

Home Page:https://infercnvpy.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

copykat py2rpy error

diyang1354 opened this issue · comments

Hi,
When I run copykat method with the latest version 0.3.0, the following error occured:
NotImplementedError: Conversion 'py2rpy' not defined for objects of type '<class 'pandas.core.indexes.base.Index'>'
What should I do?
Best
image

HI @diyang1354,

can you try

...
norm_cell_names = norm_cell.obs.index.tolist()
...

Hi @diyang1354,

What helped me was to run this after importing and before running a tool:

from rpy2.robjects import pandas2ri

pandas2ri.activate()