I installed cell2location in a conda env with a python version == Python 3.10.8. There is no error running import cell2location
. However, when I ran from cell2location import run_regression
, I got this error:
ImportError Traceback (most recent call last)
Cell In[15], line 2
1 # Run the pipeline:
----> 2 from cell2location import run_regression
ImportError: cannot import name ‘run_regression’ from ‘cell2location’ (/wynton/home/shain/limchen/.conda/envs/myjupyter/lib/python3.10/site-packages/cell2location/init.py)
Also, when I ran help(cell2location.models.RegressionGeneBackgroundCoverageTorch)
, I got the following error:
AttributeError Traceback (most recent call last)
Cell In[17], line 1
----> 1 help(cell2location.models.RegressionGeneBackgroundCoverageTorch)
AttributeError: module ‘cell2location.models’ has no attribute ‘RegressionGeneBackgroundCoverageTorch’
Here is tutorial I followed: cell2location/docs/notebooks/cell2location_estimating_signatures.ipynb at master · BayraktarLab/cell2location · GitHub
Any suggestion on solving these errors?
Thanks in advance.
Best,
LC