Open Pangjing-Wu opened 6 months ago
Hi @Pangjing-Wu
Thank you so much for the detailed report. I had tracked the issue before, but I forgot to implement the quick fix.
This was caused because of newer versions of pandas that stopped using sets for indexing dataframes. I just published a newer version fixing this issue. Please update to v0.7.4 with pip install -U cell2cell
.
Let me know if this works properly.
Hi! I found a type error caused by an invalid data type for Pandas index while running the tutorial code of https://earmingol.github.io/cell2cell/tutorials/Toy-Example-SingleCellPipeline/.
My cell2cell version is
0.7.3
and Pandas version is2.2.1
.After debugging, I found the type error was caused by the invalid data type for Pandas index on
cell2cell/preprocessing/rnaseq.py:179
:where the type of
v
isset
that does not support by pandas index.After tracing the source of
v
, that is the source of argumentcomplexes
, I found that in/cell2cell/preprocessing/ppi.py: 370
you conduct severalset
operations and did not transform back tolist
orarrayLike
data type before finally outputcomplexes
. Therefore, thetype
ofcomplexes.values()
isset
instead oflist
, which caused the type error.I do not know whether it is the correct way to fix the error and hope you can conduct a throughout check for this. Thanks!
The following is the complete traceback output FYI: