question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Koncopdcommented, May 13, 2020

@nahanoo Hi, there are 3 options for now:

  1. downgrading umap to 0.39
  2. installing scanpy from github
  3. waiting for a new release of scanpy.
0reactions
nahanoocommented, May 13, 2020

Thank you for the fast response. Building from source did the job for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found