When using umap with init_pos=paga, got strange result
See original GitHub issueWhen i use umap with the parameter init_pos=‘paga’, I got a strange result.
sc.pl.umap(adata,color='louvain')
no error
Versions:
scanpy==1.4.4 anndata==0.6.22.post1 umap==0.3.9 numpy==1.17.3 scipy==1.3.1 pandas==0.25.0 scikit-learn==0.21.2 statsmodels==0.10.1 python-igraph==0.7.1 louvain==0.6.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
When using umap with init_pos=paga, got strange result #918
When i use umap with the parameter init_pos='paga', I got a strange result. sc.pl.umap(adata,color='louvain') no error Versions: ...
Read more >Frequently Asked Questions — umap 0.5 documentation
One of UMAPs goals is to have distance between clusters of points be meaningful. This means that clusters can end up spread out...
Read more >Outlier detection using UMAP - Read the Docs
Ideally we should expect to find some potentially even stranger results. %%time outlier_scores = sklearn.neighbors.
Read more >How to Use UMAP — umap 0.5 documentation
Finally we'll need some plotting tools (matplotlib and seaborn) to help us visualise the results of UMAP, and pandas to make that a...
Read more >UMAP Reproducibility — umap 0.5 documentation
UMAP is a stochastic algorithm – it makes use of randomness both to speed ... This means that multi-threaded UMAP results cannot be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for posting that code, it’s very helpful for figuring this stuff out.
I tried running that code on one of our example datasets, and wasn’t able to reproduce your results (however, one of the variables
pos_coord
wasn’t defined):The final plot looks normal enough:
Right now, there are a lot of variables in this script. There’s a few things to try:
pos_coord
is causing the issue@ivirshup Yeah, it was the same data as the privious plot. I tried calling sc.tl.umap(sp, init_pos=“paga”) but meet an error. I just use the get_init_pos_from_paga function to solve this error as mention in #769 .Thanks!