Starlitnightly / omicverse

A python library for multi omics included bulk, single cell and spatial RNA-seq analysis.
https://starlitnightly.github.io/omicverse/
GNU General Public License v3.0
445 stars 51 forks source link

error in CellPhoneDB #168

Open baconchan opened 3 weeks ago

baconchan commented 3 weeks ago

when running cpdb_results=ov.utils.load('cpdb/*****.pkl')


ModuleNotFoundError Traceback (most recent call last) Cell In[4], line 1 ----> 1 cpdb_results=ov.utils.load('cpdb/*****.pkl')

File ~/miniconda3/envs/omicverse2/lib/python3.10/site-packages/omicverse/utils/_data.py:606, in load(path) 604 import pickle 605 with open(path, 'rb') as f: --> 606 return pickle.load(f)

ModuleNotFoundError: No module named 'pandas.core.indexes.numeric'

pandas version 2.2.3

baconchan commented 3 weeks ago

omicverse 1.6.7

Starlitnightly commented 3 weeks ago

It should be noted that the content saved by pickle is version dependent. For example, if you save a pkl file in a lower version of pandas, it may not be readable when you update pandas, and you need to run cellphonedb again