Closed ahmedibatta closed 3 years ago
The first error implies from scanpy import logging as logg
did not work. I'd ask if you have scanpy installed, but I presume you managed to read the input objects.
I cannot replicate the second error - just installed off pip and I sure as heck have access to bbknn.ridge_regression()
. Any version 1.4.0 and on does.
Thanks for your reply, actually I updated the bbknn and installed the package (logging & logger ) through pip and it worked but another error appears:
when trying
sc.tl.umap(adata)
AttributeError: module 'umap' has no attribute 'version'
version installed : scanpy==1.7.0 anndata==0.7.4 numpy==1.20.3 scipy==1.6.3 pandas==1.2.4 scikit-learn==0.22.2.post1 statsmodels==0.11.1 python-igraph==0.8.2 leidenalg==0.8.3 umap-learn==0.5.1
for second error , when updated bbknn , gave me another error for ridge.regression
bbknn.ridge_regression(adata,
batch_key=['batch'], confounder_key=['leiden'])
KeyError: "['leiden'] not in index"
however it is be installed leidenalg==0.8.3
Having a module installed will not make .obs['leiden']
appear in your object. Running sc.tl.leiden()
will. You did not mention that command being troublesome. Also that command is not part of BBKNN.
Whatever sc.tl.umap()
weirdness you're encountering has nothing to do with BBKNN either.
You may have better luck contacting the scanpy team about this.
I tried to redo this example to using bbknn demo (https://nbviewer.jupyter.org/github/Teichlab/bbknn/blob/master/examples/demo.ipynb) but I faced two problem 1- NameError: name 'logg' is not defined 2- AttributeError: module 'bbknn' has no attribute 'ridge_regression'
NameError Traceback (most recent call last)