UMAP 0.4.0rc1 doesn't play nice with ingest
See original GitHub issue@Koncopd, I just tried out the new release candidate for umap and get errors though out the ingest tests. It looks like umap
now relies on pynndescent
and some functions are no longer available. Here’s an example traceback:
------------------------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------------------------
running ingest
______________________________________________________________________________________________________________ test_ingest_map_embedding_umap ______________________________________________________________________________________________________________
def test_ingest_map_embedding_umap():
adata_ref = sc.AnnData(X)
adata_new = sc.AnnData(T)
sc.pp.neighbors(
adata_ref, method='umap', use_rep='X', n_neighbors=4, random_state=0
)
sc.tl.umap(adata_ref, random_state=0)
> ing = sc.tl.Ingest(adata_ref)
scanpy/tests/test_ingest.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
scanpy/tools/_ingest.py:270: in __init__
self._init_neighbors(adata)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <scanpy.tools._ingest.Ingest object at 0x140357550>, adata = AnnData object with n_obs × n_vars = 6 × 5
uns: 'neighbors', 'umap'
obsm: 'X_umap'
def _init_neighbors(self, adata):
from umap.distances import named_distances
> from umap.nndescent import (
make_initialisations,
make_initialized_nnd_search,
)
E ImportError: cannot import name 'make_initialisations' from 'umap.nndescent' (/usr/local/lib/python3.7/site-packages/umap/nndescent.py)
scanpy/tools/_ingest.py:210: ImportError
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
UMAP 0.4.0rc1 doesn't play nice with ingest #1036 - GitHub
Koncopd, I just tried out the new release candidate for umap and get errors though out the ingest tests. It looks like umap...
Read more >Analyzing CITE-seq data — Scanpy documentation
Plotting values between modalities TODO: Get selectors like this working in scanpy.
Read more >EasyBuild Documentation - Read the Docs
work, also referred to as easyconfig parameters (see Writing ... other ways of installing Python packages, which we won't cover here.
Read more >notebookf9298456d3 - Kaggle
It is a distutils installed project and thus we cannot accurately ... to provide a starting point for further work, and to illustrate...
Read more >EasyBuild v4.6.2 documentation (release 20221021.0)
... add patches for Ambertools 21 to Amber 20.11 to work with updated Amber ... also build BLIS backend for FlexiBLAS v3.0.4 with...
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
@nahanoo Hi, there are 3 options for now:
Thank you for the fast response. Building from source did the job for me.