Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] in running Pyscenic GRN grnboost2 #557

Open
husain223 opened this issue Jun 24, 2024 · 2 comments
Open

[ERROR] in running Pyscenic GRN grnboost2 #557

husain223 opened this issue Jun 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@husain223
Copy link

Describe the bug
I am trying to run Pyscenic GRN but its giving me error and i am unable to solve the issue.

Steps to reproduce the behavior

  1. Command run when the error occurred:
pyscenic grn dm6_filtered_scenic.loom allTFs_dmel.txt -o adjw.csv --method grnboost2
  1. Error encountered:
2024-06-24 11:50:18,063 - pyscenic.cli.pyscenic - INFO - Loading expression matrix.
Traceback (most recent call last):
  File "/opt/miniconda3/envs/pyscenic/bin/pyscenic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/pyscenic/cli/pyscenic.py", line 713, in main
    args.func(args)
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/pyscenic/cli/pyscenic.py", line 59, in find_adjacencies_command
    ex_mtx = load_exp_matrix(
             ^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/pyscenic/cli/utils.py", line 134, in load_exp_matrix
    return load_exp_matrix_as_loom(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/pyscenic/cli/utils.py", line 82, in load_exp_matrix_as_loom
    with lp.connect(fname, mode="r", validate=False) as ds:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/loompy/loompy.py", line 1515, in connect
    return LoomConnection(filename, mode, validate=validate)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/loompy/loompy.py", line 98, in __init__
    self.attrs = loompy.GlobalAttributeManager(self._file)  #: Global attributes
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/loompy/global_attribute_manager.py", line 23, in __init__
    materialized = loompy.materialize_attr_values(val[()])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/loompy/normalize.py", line 91, in materialize_attr_values
    if np.issubdtype(a.dtype, np.string_) or np.issubdtype(a.dtype, np.object_):
                              ^^^^^^^^^^
  File "/opt/miniconda3/envs/pyscenic/lib/python3.12/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.. Did you mean: 'strings'?

Please complete the following information:

  • pySCENIC version: Single-Cell rEgulatory Network Inference and Clustering (0.12.1+2.geaf23eb)
  • Installation method: conda
  • Run environment: bash
  • OS: mac
  • Package versions: [obtain using pip freeze, conda list, or skip this if using Docker/Singularity]:
  • System config: M2 Chip,24 GB RAM,1.5 TB free space.
@husain223 husain223 added the bug Something isn't working label Jun 24, 2024
@ghuls
Copy link
Member

ghuls commented Jun 28, 2024

Install an older version of numpy.

@ghuls
Copy link
Member

ghuls commented Jul 4, 2024

Or use the Docker/Podman/Singularity/Apptainer images:
https://pyscenic.readthedocs.io/en/latest/installation.html#docker-podman-and-singularity-apptainer-images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants