scverse / mudata

Multimodal Data (.h5mu) implementation for Python
https://mudata.rtfd.io
BSD 3-Clause "New" or "Revised" License
72 stars 16 forks source link

Reindexing only valid with uniquely valued Index objects #67

Open raozuming opened 3 weeks ago

raozuming commented 3 weeks ago

Describe the bug mudata v.0.2.3 version, anndata v0.9.2, calling mudata.update(), causing anadata data update failure, confirming that there are no duplicate data in the original data, generating duplicate data in line 799 now_index = pd.Index(now_values), triggering line 801 index_order = prev_index.get_indexer(now_index), pandas.errors.InvalidIndexError: Reindexing only valid with uniquely valued Index objects

image

To Reproduce Steps to reproduce the behaviour.

Please provide exact steps to reproduce the bug in a clean Python environment. In case it's not clear what's causing this bug, please provide the data or the data generation procedure. Sometimes it is not possible to share the data but usually it is possible to replicate problems on publicly available datasets or to share a subset of your data.

Expected behaviour A clear and concise description of what you expected to happen.

System

Additional context Add any other context about the problem here.

gtca commented 3 weeks ago

Do you have any steps to reproduce that, @raozuming?