Teichlab / celltypist

A tool for semi-automatic cell type classification
https://www.celltypist.org/
MIT License
284 stars 45 forks source link

predictions.to_adata() error #47

Closed sailseem closed 1 year ago

sailseem commented 1 year ago

Dear developer,

This is really fantastic package for cell annotation, well, when I run the predictions.to_adata(), it returns ValueError: cannot reindex on an axis with duplicate labels

Can you help me with it?

Thanks a lot!!!

ChuanXu1 commented 1 year ago

@sailseem, there should be duplicated cell names in your data. Try to deduplicate the data such as adata.obs_names_make_unique()

ChuanXu1 commented 1 year ago

This issue should be solved now. Please let me know if you have further questions.