You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thank you very much for developing such excellent tools. However, I encountered an error while using them. Could you tell me what could be the reason for this?
st.tl.cci.run(adata, lrs,
... min_spots = 5, #Filter out any LR pairs with no scores for less than min_spots
... distance=0, # None defaults to spot+immediate neighbours; distance=0 for within-spot mode
... n_pairs=100, # Number of random pairs to generate; low as example, recommend ~10,000
... n_cpus=4 # Number of CPUs for parallel. If None, detects & use all available.
... )
Calculating neighbours...
0 spots with no neighbours, 1 median spot neighbours.
Spot neighbour indices stored in adata.obsm['spot_neighbours'] & adata.obsm['spot_neigh_bcs'].
Traceback (most recent call last):
File "", line 1, in
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/analysis.py", line 325, in run
lr_scores, lrs = get_lrs_scores(adata, lrs, neighbours, het_vals, min_expr)
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 131, in get_lrs_scores
lr_scores = get_scores(
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/numba/core/dispatcher.py", line 468, in _compile_for_args
error_rewrite(e, 'typing')
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/numba/core/dispatcher.py", line 409, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Cannot unify array(float64, 1d, C) and array(int64, 1d, C) for 'nb_expr_mean.2', defined at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (264)
File "../../anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 264:
def lr_core(
During: typing of assignment at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (264)
File "../../anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 264:
def lr_core(
During: resolving callee type: type(CPUDispatcher(<function lr_core at 0x7f9579955310>))
During: typing of call at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (340)
During: resolving callee type: type(CPUDispatcher(<function lr_core at 0x7f9579955310>))
During: typing of call at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (340)
File "../../anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 340:
def get_scores(
Hi,
Thank you very much for developing such excellent tools. However, I encountered an error while using them. Could you tell me what could be the reason for this?
st.tl.cci.run(adata, lrs,
... min_spots = 5, #Filter out any LR pairs with no scores for less than min_spots
... distance=0, # None defaults to spot+immediate neighbours; distance=0 for within-spot mode
... n_pairs=100, # Number of random pairs to generate; low as example, recommend ~10,000
... n_cpus=4 # Number of CPUs for parallel. If None, detects & use all available.
... )
Calculating neighbours...
0 spots with no neighbours, 1 median spot neighbours.
Spot neighbour indices stored in adata.obsm['spot_neighbours'] & adata.obsm['spot_neigh_bcs'].
Traceback (most recent call last):
File "", line 1, in
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/analysis.py", line 325, in run
lr_scores, lrs = get_lrs_scores(adata, lrs, neighbours, het_vals, min_expr)
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 131, in get_lrs_scores
lr_scores = get_scores(
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/numba/core/dispatcher.py", line 468, in _compile_for_args
error_rewrite(e, 'typing')
File "/bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/numba/core/dispatcher.py", line 409, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Cannot unify array(float64, 1d, C) and array(int64, 1d, C) for 'nb_expr_mean.2', defined at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (264)
File "../../anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 264:
def lr_core(
During: typing of assignment at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (264)
File "../../anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 264:
def lr_core(
During: resolving callee type: type(CPUDispatcher(<function lr_core at 0x7f9579955310>))
During: typing of call at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (340)
During: resolving callee type: type(CPUDispatcher(<function lr_core at 0x7f9579955310>))
During: typing of call at /bioccWL/Student/yinxz/anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py (340)
File "../../anaconda3/envs/stlearn/lib/python3.8/site-packages/stlearn/tools/microenv/cci/base.py", line 340:
def get_scores(
package Version Build Channel
_libgcc_mutex 0.1 main https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
_openmp_mutex 5.1 1_gnu https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
absl-py 2.1.0 pypi_0 pypi
anndata 0.9.2 pypi_0 pypi
astunparse 1.6.3 pypi_0 pypi
bokeh 3.1.1 pypi_0 pypi
ca-certificates 2024.3.11 h06a4308_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cachetools 5.3.3 pypi_0 pypi
certifi 2024.6.2 pypi_0 pypi
charset-normalizer 3.3.2 pypi_0 pypi
click 8.1.7 pypi_0 pypi
contourpy 1.1.1 pypi_0 pypi
cycler 0.12.1 pypi_0 pypi
flatbuffers 24.3.25 pypi_0 pypi
fonttools 4.53.0 pypi_0 pypi
gast 0.4.0 pypi_0 pypi
get-annotations 0.1.2 pypi_0 pypi
google-auth 2.30.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
grpcio 1.64.1 pypi_0 pypi
h5py 3.11.0 pypi_0 pypi
idna 3.7 pypi_0 pypi
igraph 0.11.5 pypi_0 pypi
imageio 2.34.1 pypi_0 pypi
importlib-metadata 7.1.0 pypi_0 pypi
importlib-resources 6.4.0 pypi_0 pypi
jinja2 3.1.4 pypi_0 pypi
joblib 1.4.2 pypi_0 pypi
keras 2.11.0 pypi_0 pypi
kiwisolver 1.4.5 pypi_0 pypi
lazy-loader 0.4 pypi_0 pypi
ld_impl_linux-64 2.38 h1181459_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
leidenalg 0.10.2 pypi_0 pypi
libclang 18.1.1 pypi_0 pypi
libffi 3.4.4 h6a678d5_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgcc-ng 11.2.0 h1234567_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgomp 11.2.0 h1234567_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libstdcxx-ng 11.2.0 h1234567_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
llvmlite 0.40.1 pypi_0 pypi
louvain 0.8.2 pypi_0 pypi
markdown 3.6 pypi_0 pypi
markupsafe 2.1.5 pypi_0 pypi
matplotlib 3.7.5 pypi_0 pypi
natsort 8.4.0 pypi_0 pypi
ncurses 6.4 h6a678d5_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
networkx 3.1 pypi_0 pypi
numba 0.57.1 pypi_0 pypi
numpy 1.21.6 pypi_0 pypi
oauthlib 3.2.2 pypi_0 pypi
openssl 3.0.13 h7f8727e_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
opt-einsum 3.3.0 pypi_0 pypi
packaging 24.0 pypi_0 pypi
pandas 2.0.3 pypi_0 pypi
patsy 0.5.6 pypi_0 pypi
pillow 10.3.0 pypi_0 pypi
pip 24.0 py38h06a4308_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
protobuf 3.19.6 pypi_0 pypi
pyasn1 0.6.0 pypi_0 pypi
pyasn1-modules 0.4.0 pypi_0 pypi
pynndescent 0.5.12 pypi_0 pypi
pyparsing 3.1.2 pypi_0 pypi
python 3.8.19 h955ad1f_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-dateutil 2.9.0.post0 pypi_0 pypi
pytz 2024.1 pypi_0 pypi
pywavelets 1.4.1 pypi_0 pypi
pyyaml 6.0.1 pypi_0 pypi
readline 8.2 h5eee18b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
requests 2.32.3 pypi_0 pypi
requests-oauthlib 2.0.0 pypi_0 pypi
rsa 4.9 pypi_0 pypi
scanpy 1.9.8 pypi_0 pypi
scikit-image 0.21.0 pypi_0 pypi
scikit-learn 1.3.2 pypi_0 pypi
scipy 1.10.1 pypi_0 pypi
seaborn 0.13.2 pypi_0 pypi
session-info 1.0.0 pypi_0 pypi
setuptools 69.5.1 py38h06a4308_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
six 1.16.0 pypi_0 pypi
sqlite 3.45.3 h5eee18b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
statsmodels 0.14.1 pypi_0 pypi
stdlib-list 0.10.0 pypi_0 pypi
stlearn 0.4.12 pypi_0 pypi
tensorboard 2.11.2 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow 2.11.1 pypi_0 pypi
tensorflow-estimator 2.11.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.34.0 pypi_0 pypi
termcolor 2.4.0 pypi_0 pypi
texttable 1.7.0 pypi_0 pypi
threadpoolctl 3.5.0 pypi_0 pypi
tifffile 2023.7.10 pypi_0 pypi
tk 8.6.14 h39e8969_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tornado 6.4.1 pypi_0 pypi
tqdm 4.66.4 pypi_0 pypi
typing-extensions 4.12.2 pypi_0 pypi
tzdata 2024.1 pypi_0 pypi
umap-learn 0.5.6 pypi_0 pypi
urllib3 2.2.1 pypi_0 pypi
werkzeug 3.0.3 pypi_0 pypi
wheel 0.43.0 py38h06a4308_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wrapt 1.16.0 pypi_0 pypi
xyzservices 2024.6.0 pypi_0 pypi
xz 5.4.6 h5eee18b_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zipp 3.19.2 pypi_0 pypi
zlib 1.2.13 h5eee18b_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
The text was updated successfully, but these errors were encountered: