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

Use Leiden algorithm and add argument for resolution in Phenograph option in utility.init_clustering() #35

Open
DC123456789 opened this issue Nov 28, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@DC123456789
Copy link

The Phenograph option in utility.init_clustering() currently uses the Louvain algorithm (which is the default setting) and has no option for adjusting the number of clusters. Generally, the Leiden algorithm seems to be considered better than Louvain and can be enabled by the clustering_algo option; it also has the benefit of having an easy parameter to adjust number of clusters (resolution_parameter) which could easily be set using the k argument that already exists in the function.

@DC123456789 DC123456789 added the enhancement New feature or request label Nov 28, 2023
@DC123456789
Copy link
Author

Also, the phenograph call needs to have the seed argument set to be reproducible, as pl.seed_everything() doesn't seem to set its random seed properly.

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

No branches or pull requests

1 participant