Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Split field split is specified but not found in AnnData.obs when predicting new anndata object. #11

Open
ngvananh2508 opened this issue Apr 22, 2024 · 3 comments

Comments

@ngvananh2508
Copy link

Hi, I used the model to predict cell types of new Anndata object. This object can not have split attribute and I did not find celltype attribute to get cell type annotation. And it emitted this error:
image

@wehos
Copy link
Contributor

wehos commented Apr 22, 2024

Thank you for reporting this issue. Could you please set split_list = None before running the command? I hope this could address the issue.

Let me know if this still results in an error.

@ngvananh2508
Copy link
Author

When I add split_list = None, I found that score() method does not have split_list argument. When I change to split_field = None, it raised TypeError: object of type 'NoneType' has no len().
image
When I add label_fields = ['celltype'] argument, it raised this error:
image
This is my Anndata object:
image

Thank you very much for supporting me.

@ngvananh2508
Copy link
Author

ngvananh2508 commented Apr 24, 2024

And in case you need to modify the source code, could you please let me know the time that the library would be repaired completely? Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants