Skip to content

AttributeError: module 'numpy' has no attribute 'object' #8

@timothykoala

Description

@timothykoala

Hi Dr. Wang,
I tried to convert a hg19 .hic into hg38 .hic by command line below and faced an error:

pairLiftOver --input /RPE-1_HiC/GSE71831_RPE1-WT.hic --input-format juicer --out-pre test-hg38 --output-format hic --out-chromsizes hg38.chrom.sizes --in-assembly hg19 --out-assembly hg38 --logFile pairLiftOver.log --memory 14G

Here is the log:

# ARGUMENT LIST:
# Input path = /RPE-1_HiC/GSE71831_RPE1-WT.hic
# Input format = juicer
# Output prefix = test-hg38
# Output format = hic
# Chromosome Sizes of the output assembly = hg38.chrom.sizes
# Generate contact maps at 11 resolutions = False
# Input assembly = hg19
# Output assembly = hg38
# Chain file = None
# Temporary Dir = .pairliftover
# Allocated memory = 14G
# Number of Processes = 8
# Log file name = /RPE-1_HiC/pairLiftOver.log
/home/txpn/anaconda3/envs/pairliftover/lib/python3.9/site-packages/cooler/util.py:690: FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar.  (This may have returned Python scalars in past versions.
  columns, dtype=None, index_columns=None, index_names=None, default_dtype=np.object
Traceback (most recent call last):
  File "/home/txpn/anaconda3/envs/pairliftover/bin/pairLiftOver", line 137, in <module>
    run()
  File "/home/txpn/anaconda3/envs/pairliftover/bin/pairLiftOver", line 101, in run
    from pairLiftOver.utilities import liftover
  File "/home/txpn/anaconda3/envs/pairliftover/lib/python3.9/site-packages/pairLiftOver/utilities.py", line 1, in <module>
    import subprocess, sys, os, io, logging, cooler, pairLiftOver
  File "/home/txpn/anaconda3/envs/pairliftover/lib/python3.9/site-packages/cooler/__init__.py", line 14, in <module>
    from .api import Cooler, annotate
  File "/home/txpn/anaconda3/envs/pairliftover/lib/python3.9/site-packages/cooler/api.py", line 22, in <module>
    from .util import parse_cooler_uri, parse_region, open_hdf5, closing_hdf5
  File "/home/txpn/anaconda3/envs/pairliftover/lib/python3.9/site-packages/cooler/util.py", line 690, in <module>
    columns, dtype=None, index_columns=None, index_names=None, default_dtype=np.object
  File "/home/txpn/anaconda3/envs/pairliftover/lib/python3.9/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'object'

Thanks in advance for developing the tool and looking forward for more discussion.

Sincerely,
Timothy

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