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

How to use leidenbase instead of Python based 'leiden algorithm' implementation? #7212

Closed
mauritsunkel opened this issue Apr 24, 2023 · 1 comment

Comments

@mauritsunkel
Copy link

Hi,

Based on #6792 I wanted to try the Leidenbase (https://github.com/cole-trapnell-lab/leidenbase) implementation to circumvent Reticulate for calling Python to run the leiden algorithm (FindClusters(algorithm = 4) or FindClusters(algorithm = "leiden")) as I had many install issues.

Running FindNeighbors() I get SO@graphs$SCT_snn (shared nearest neighbor graph, and $SCT_nn). I tried then running:
igraph <- igraph::graph_from_adjacency_matrix(SO@graphs$SCT_snn)
Followed by:
clusters <- leidenbase::leiden_find_partition(igraph, resolution_parameter = .1)
clusters$membership
Even when playing with the resolution_parameter most cells seem to stay in their own 'cluster' (singleton partition, partition not found?)

Any suggestions for making this work? (Even open for how to make the Python implementation work after all)

@yuhanH
Copy link
Collaborator

yuhanH commented Jul 14, 2023

hi @mauritsunkel
This issue seems to be more relevant to leidenbase::leiden_find_partition but not really to Seurat. You would better post this issue in leidenbase github.

@yuhanH yuhanH closed this as completed Jul 14, 2023
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