question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Compare to a single cluster" can not work

See original GitHub issue

code:

sc.tl.rank_genes_groups(adata, 'louvain_groups', groups=['13'], reference= '18' )

Error:
ValueError: reference = 18 needs to be one of group_by = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]

I think the problem is the code comfuse str(18) and int(18).

could you solve it? Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
AnatoleKingcommented, Mar 3, 2018

I solved the problem by

adata.obs['louvain_groups'].cat.categories = [
    str(i) for i in adata.obs['louvain_groups'].cat.categories
]

I think you need check the function sc.tl.louvain(adata, n_neighbors=10, resolution=1.3, recompute_graph=True), why it gives int number.

0reactions
falexwolfcommented, Apr 11, 2018

Hope that these issues are solved, now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evaluation of clustering: single cluster solution vs. multiple ...
Is there a popular index/procedure that helps compare a single cluster solution (i.e., all elements belong to one single cluster) vs. a solution ......
Read more >
Single Instance vs. Cluster - ArangoDB Documentation
If both your Single Instance and Cluster are running on the same machine, they should have distinct data directories. It is not possible...
Read more >
Comparing Clusters - NI - National Instruments
Clusters you compare must include the same number of elements, each element in the clusters must be of compatible types, and the elements ......
Read more >
Compare settings in different clusters - Cloudera Community
Hi,. we have multiple clusters which are managed by different instances of Cloudera Manager. It would be helpful to compare the complete configuration...
Read more >
Single Node clusters | Databricks on AWS
A Single Node cluster is a cluster consisting of an Apache Spark driver and no Spark workers. A Single Node cluster supports Spark...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found