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

UMAP connectivity plot #6898

Closed
vertesy opened this issue Jan 27, 2023 · 6 comments
Closed

UMAP connectivity plot #6898

vertesy opened this issue Jan 27, 2023 · 6 comments
Labels
more-information-needed We need more information before this can be addressed

Comments

@vertesy
Copy link

vertesy commented Jan 27, 2023

The UMAP package has a connectivity plot, that helps to understand if closeness in 2D is an artifact, or also cells are also close in the underlying kNN space.

Can a direct call to this plot be implemented in Seurat?

(Sorry if its already available, I did not find it)

UMAP works by constructing an intermediate topological representation of the approximate manifold the data may have been sampled from. In practice this structure can be simplified down to a weighted graph. Sometimes it can be beneficial to see how that graph (representing connectivity in the manifold) looks with respect to the resulting embedding. It can be used to better understand the embedding, and for diagnostic purposes. To see the connectivity you can use the umap.plot.connectivity function. It works very similarly to the umap.plot.points function, and has the option as to whether to display the embedding point, or just the connectivity. To start let’s do a simple plot showing the points:
Source: https://umap-learn.readthedocs.io/en/latest/plotting.html#plotting-connectivity

umap.plot.connectivity(mapper, show_points=True)

umap.plot.connectivity(mapper, edge_bundling='hammer')

This seems to be a generally useful tool to interpret UMAP representations more carefully.

@yuhanH
Copy link
Collaborator

yuhanH commented Feb 10, 2023

hi @vertesy
Seurat uses uwot to generate UMAP visulization. Do you know if uwot has this functionality?

@yuhanH yuhanH added the more-information-needed We need more information before this can be addressed label Feb 10, 2023
@vertesy
Copy link
Author

vertesy commented Feb 12, 2023

mmm...

jlmelville/uwot#65

@jlmelville
Copy link

uwot does not do this.

@yuhanH
Copy link
Collaborator

yuhanH commented Feb 18, 2023

@jlmelville Thanks for your reply!

@yuhanH yuhanH closed this as completed Feb 18, 2023
@denvercal1234GitHub
Copy link

@yuhanH and @jlmelville -- So did Seurat implement this feature in the end? Thank you

@jlmelville
Copy link

@denvercal1234GitHub I don't work on Seurat so I am unable to tell you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed We need more information before this can be addressed
Projects
None yet
Development

No branches or pull requests

4 participants