-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Right now, the modularity achieved in Leiden clustering is being thrown away here:
| leiden_parts, _ = culeiden( |
Would you consider recording it in adata.uns["leiden"] instead?
I am aware that there will eventually be a scanpy.metrics.modularity function, which might get a corresponding implementation here, but as I comment in the associated discussion, saving the already computed modularity is basically free, and could potentially be quite useful (e.g. when one is computing multiple clusterings of the same data, perhaps varying the resolution parameter, or the number of nearest neighbours, and comparing the results).
I'd be happy to write a small PR for this, if you agree.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request