Closed Crazzy-Rabbit closed 1 week ago
Hi Lulu,
This error may be due to the highly_variable_genes function in Scanpy. The issue arises because pandas has a loose dependency on numpy, defined as "any version newer than a certain release." When numpy 2.0.0 was released on June 16, 2024, it became incompatible with your version of pandas. To resolve this, downgrade numpy to version 1.26.4 and try running gsMap again.
Best, Liyang
Hi Liyang,
Thanks for your prompt reply, when I downgrade numpy to version 1.26.4, below error will be generated
================================================================================
[2024-11-01 12:26:15,301] INFO | gsMap - Running run_find_latent_representations...
Traceback (most recent call last):
File "/public/home/shilulu/anaconda3/envs/gsMap/bin/gsmap", line 8, in <module>
sys.exit(main())
File "/public/home/shilulu/software/gsMap/src/gsMap/main.py", line 10, in main
args.func(
File "/public/home/shilulu/software/gsMap/src/gsMap/config.py", line 42, in wrapper
func(*args, **kwargs)
File "/public/home/shilulu/software/gsMap/src/gsMap/config.py", line 742, in run_find_latent_representation_from_cli
from gsMap.find_latent_representation import run_find_latent_representation
File "/public/home/shilulu/software/gsMap/src/gsMap/find_latent_representation.py", line 4, in <module>
import scanpy as sc
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scanpy/__init__.py", line 20, in <module>
from ._utils import check_versions
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scanpy/_utils/__init__.py", line 30, in <module>
from sklearn.utils import check_random_state
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/__init__.py", line 84, in <module>
from .base import clone
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/base.py", line 19, in <module>
from .utils._estimator_html_repr import _HTMLDocumentationLinkMixin, estimator_html_repr
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/utils/__init__.py", line 11, in <module>
from ._chunking import gen_batches, gen_even_slices
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/utils/_chunking.py", line 8, in <module>
from ._param_validation import Interval, validate_params
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/utils/_param_validation.py", line 14, in <module>
from .validation import _is_arraylike_not_scalar
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/utils/validation.py", line 26, in <module>
from ..utils._array_api import _asarray_with_order, _is_numpy_namespace, get_namespace
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/utils/_array_api.py", line 11, in <module>
from .fixes import parse_version
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/sklearn/utils/fixes.py", line 21, in <module>
import scipy.stats
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/stats/__init__.py", line 606, in <module>
from ._stats_py import *
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 49, in <module>
from . import distributions
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/stats/distributions.py", line 11, in <module>
from . import _discrete_distns
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/stats/_discrete_distns.py", line 10, in <module>
from scipy.interpolate import interp1d
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/interpolate/__init__.py", line 167, in <module>
from ._interpolate import *
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/interpolate/_interpolate.py", line 14, in <module>
from . import _fitpack_py
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/interpolate/_fitpack_py.py", line 8, in <module>
from ._fitpack_impl import bisplrep, bisplev, dblint # noqa: F401
File "/public/home/shilulu/anaconda3/envs/gsMap/lib/python3.9/site-packages/scipy/interpolate/_fitpack_impl.py", line 103, in <module>
'iwrk': array([], dfitpack_int), 'u': array([], float),
TypeError
By the way, the environment of gsMap was create using conda as follow:
conda create -n gsMap python==3.9
conda activate gsMap
git clone https://github.com/LeonSong1995/gsMap.git
cd gsMap
pip install -e .
Kind regards, lulu
We have updated the dependencies. Please create a new Conda environment and reinstall it
conda create -n gsMap python==3.9
conda activate gsMap
git clone https://github.com/LeonSong1995/gsMap.git
cd gsMap
pip install -e .
Cool. The issue already resolved.
Thanks, lulu
Hi Liyang Thanks for you providing this tools which provide us with new insights combings GWAS data and spaital transcriptome data. A very nice job! But when we run the option
gsmap quick_mode
, it generate an issue, I don't think it's a data error. My command line and error as follow:Thank you very much for your help!
Kind regards, lulu