You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compute UMAP from pre-existing distance matrix #2157
It should be easier to compute a UMAP layout from a pre-existing distance matrix. Currently, we only really support this for pre-existing connectivity matrices.
The missing step here is computing the umap weighted graph from a distance matrix.
The functionality for this largely already exists in the sc.neighbors module in private functions (example: #2139 (comment)). We would just need an API.
@flying-sheep
Hello. Should we implement separate method for connectivity matrix? Now connectivity matrix is strongly computed in umap AND in gauss methods. Compute it in gauss only will be inconsistent (I can be assignee)
Hm, maybe the best approach would be to rename the method parameter to connectivities, and allow specifying an array/matrix instead of a string for it.
Then if an array/matrix is passed, only its dimensions are validated, but no connectivities are computed.
Activity
ivirshup commentedon Feb 19, 2024
@flying-sheep did this get implemented by your recent work with the neighbors function?
flying-sheep commentedon Feb 20, 2024
Not conveniently, no:
and this still computes connectivites.
We’re much closer though!
Reovirus commentedon Apr 8, 2025
@flying-sheep
Hello. Should we implement separate method for connectivity matrix? Now connectivity matrix is strongly computed in umap AND in gauss methods. Compute it in gauss only will be inconsistent (I can be assignee)
flying-sheep commentedon Apr 10, 2025
Hm, maybe the best approach would be to rename the
methodparameter toconnectivities, and allow specifying an array/matrix instead of a string for it.Then if an array/matrix is passed, only its dimensions are validated, but no connectivities are computed.
Reovirus commentedon Apr 11, 2025
Ok. I'll commit in a few days