-
Notifications
You must be signed in to change notification settings - Fork 6
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
merge_clusters error: max() arg is an empty sequence #4
Comments
Hey Omar, If you check adata.uns['leiden_05_markers'], one or more of the cluster will have no marker genes, which I think is causing this issue. Perhaps try recalling the markers, using: Hopefully there is this option, otherwise I may need to update the pypi package! |
Thank you for your response.
|
Also I can see there are markers selected per cluster.
|
Hmm cluster markers dict looks correct, and I am looking at the source code and cannot see how the code would be throwing that error, given that there are genes in that dictionary. Looks like the anndata object is called 'caps' in the example above? Only way I can see it would throw that error is if the marker dictionary was empty when running Are you running:
If you still get the same error, could you try running this snippet and let me know what it looks like?
In particular, could you send the result of |
Hi,
Thank you for developing this helpful package! I am currently trying to optimize the number of clusters for a cell population using your package, but I've encountered an error that I'm having trouble interpreting. Here's the sequence of functions I ran:
However, I encounter the following error when I attempt to merge clusters. Could you please help me understand what might be going wrong? Here's the error message I received:
cc.tl.merge_clusters(adata, 'leiden_05')
The text was updated successfully, but these errors were encountered: