Replies: 2 comments 3 replies
-
This isn't really an expected result, see for example https://www.nature.com/articles/s41598-019-41695-z/ It may be because Louvain is implemented directly in C++ (here: https://github.com/satijalab/seurat/blob/4e868fcde49dc0a3df47f94f5fb54a421bfdf7bc/src/ModularityOptimizer.cpp) Lines 1627 to 1716 in c463873 |
Beta Was this translation helpful? Give feedback.
-
This slowdown is likely because we're using Leiden/reticulate to call the Python implementation of leiden rather than using an R-native implementation. We haven't looked into any of the R/C++ implementations as
If anyone would like to investigate whether or not Leidenbase or leidenAlg (Kharchenko lab) are indeed faster than Leiden/reticulate and make a PR to support one of those R-native packages, we would be happy to include it. However, our focus at this time is on other priorities |
Beta Was this translation helpful? Give feedback.
-
Leiden algorithm run 16 mins,but louvain algorithm only run 30s.
louvain algorithm
And my object has 40,000 cells. Is this normal?
Beta Was this translation helpful? Give feedback.
All reactions