numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

Description

@tangsanpang2

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(

nb_expr_mean = nb_expr.sum(axis=0)
nb_lr2[i, :] = nb_expr_mean
^

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(

nb_expr_mean = nb_expr.sum(axis=0)
nb_lr2[i, :] = nb_expr_mean
^

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(

spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
^

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
       blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
      }
      } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
      })();
      (function(){
      try {
      var __m = "github.com";
      var __re = new RegExp('^' + "github\\.com" + '
      
      Skip to content

      numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

      Description

      @tangsanpang2

      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(

      nb_expr_mean = nb_expr.sum(axis=0)
      nb_lr2[i, :] = nb_expr_mean
      ^

      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(

      nb_expr_mean = nb_expr.sum(axis=0)
      nb_lr2[i, :] = nb_expr_mean
      ^

      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(

      spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
      lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
      ^

      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

      Metadata

      Metadata

      Assignees

      No one assigned

        Labels

        No labels
        No labels

        Projects

        No projects

          Milestone

          No milestone

          Relationships

          None yet

          Development

          No branches or pull requests

          Issue actions

          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
          Skip to content

          numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

          Description

          @tangsanpang2

          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(

          nb_expr_mean = nb_expr.sum(axis=0)
          nb_lr2[i, :] = nb_expr_mean
          ^

          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(

          nb_expr_mean = nb_expr.sum(axis=0)
          nb_lr2[i, :] = nb_expr_mean
          ^

          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(

          spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
          lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
          ^

          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

          Metadata

          Metadata

          Assignees

          No one assigned

            Labels

            No labels
            No labels

            Projects

            No projects

              Milestone

              No milestone

              Relationships

              None yet

              Development

              No branches or pull requests

              Issue actions

              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
              Skip to content

              numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

              Description

              @tangsanpang2

              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(

              nb_expr_mean = nb_expr.sum(axis=0)
              nb_lr2[i, :] = nb_expr_mean
              ^

              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(

              nb_expr_mean = nb_expr.sum(axis=0)
              nb_lr2[i, :] = nb_expr_mean
              ^

              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(

              spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
              lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
              ^

              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

              Metadata

              Metadata

              Assignees

              No one assigned

                Labels

                No labels
                No labels

                Projects

                No projects

                  Milestone

                  No milestone

                  Relationships

                  None yet

                  Development

                  No branches or pull requests

                  Issue actions

                  , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
                  Skip to content

                  numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

                  Description

                  @tangsanpang2

                  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(

                  nb_expr_mean = nb_expr.sum(axis=0)
                  nb_lr2[i, :] = nb_expr_mean
                  ^

                  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(

                  nb_expr_mean = nb_expr.sum(axis=0)
                  nb_lr2[i, :] = nb_expr_mean
                  ^

                  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(

                  spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
                  lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
                  ^

                  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

                  Metadata

                  Metadata

                  Assignees

                  No one assigned

                    Labels

                    No labels
                    No labels

                    Projects

                    No projects

                      Milestone

                      No milestone

                      Relationships

                      None yet

                      Development

                      No branches or pull requests

                      Issue actions

                      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
                      Skip to content

                      numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

                      Description

                      @tangsanpang2

                      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(

                      nb_expr_mean = nb_expr.sum(axis=0)
                      nb_lr2[i, :] = nb_expr_mean
                      ^

                      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(

                      nb_expr_mean = nb_expr.sum(axis=0)
                      nb_lr2[i, :] = nb_expr_mean
                      ^

                      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(

                      spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
                      lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
                      ^

                      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

                      Metadata

                      Metadata

                      Assignees

                      No one assigned

                        Labels

                        No labels
                        No labels

                        Projects

                        No projects

                          Milestone

                          No milestone

                          Relationships

                          None yet

                          Development

                          No branches or pull requests

                          Issue actions

                          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
                          Skip to content

                          numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

                          Description

                          @tangsanpang2

                          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(

                          nb_expr_mean = nb_expr.sum(axis=0)
                          nb_lr2[i, :] = nb_expr_mean
                          ^

                          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(

                          nb_expr_mean = nb_expr.sum(axis=0)
                          nb_lr2[i, :] = nb_expr_mean
                          ^

                          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(

                          spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
                          lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
                          ^

                          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

                          Metadata

                          Metadata

                          Assignees

                          No one assigned

                            Labels

                            No labels
                            No labels

                            Projects

                            No projects

                              Milestone

                              No milestone

                              Relationships

                              None yet

                              Development

                              No branches or pull requests

                              Issue actions

                              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
                              Skip to content

                              numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #300

                              Description

                              @tangsanpang2

                              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(

                              nb_expr_mean = nb_expr.sum(axis=0)
                              nb_lr2[i, :] = nb_expr_mean
                              ^

                              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(

                              nb_expr_mean = nb_expr.sum(axis=0)
                              nb_lr2[i, :] = nb_expr_mean
                              ^

                              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(

                              spot_lr1, spot_lr2 = spot_lr1s[:, i_ : (i_ + 2)], spot_lr2s[:, i_ : (i_ + 2)]
                              lr_scores = lr_core(spot_lr1, spot_lr2, neighbours, min_expr, spot_indices)
                              ^

                              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

                              Metadata

                              Metadata

                              Assignees

                              No one assigned

                                Labels

                                No labels
                                No labels

                                Projects

                                No projects

                                  Milestone

                                  No milestone

                                  Relationships

                                  None yet

                                  Development

                                  No branches or pull requests

                                  Issue actions