Skip to content

TADfind #940

@mandexue

Description

@mandexue

Hi

When I use hicexplore for TAD calling, showed this error, how I can fix it? Thanks!

INFO:hicexplorer.hicFindTADs:removing diagonal values

INFO:hicexplorer.hicFindTADs:Computing z-score matrix...

INFO:hicexplorer.hicFindTADs:Computing TAD-separation scores...

INFO:hicexplorer.hicFindTADs:computing spectrum for window sizes between 10 (100000 bp)and 40 (400000 bp) at the following window sizes 2 [100000, 120000, 156568, 203923, 260000, 323606, 393938]

INFO:hicexplorer.hicFindTADs:Using 10 processors

Traceback (most recent call last):
File "/risapps/rhel8/miniforge3/24.5.0-0/envs/hicexplorer-3.7.6/bin/hicFindTADs", line 7, in
main()
File "/risapps/rhel8/miniforge3/24.5.0-0/envs/hicexplorer-3.7.6/lib/python3.12/site-packages/hicexplorer/hicFindTADs.py", line 1357, in main
ft.find_boundaries()
File "/risapps/rhel8/miniforge3/24.5.0-0/envs/hicexplorer-3.7.6/lib/python3.12/site-packages/hicexplorer/hicFindTADs.py", line 1264, in find_boundaries
min_idx, delta = HicFindTads.find_consensus_minima(self.bedgraph_matrix['matrix'], lookahead=lookahead,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/risapps/rhel8/miniforge3/24.5.0-0/envs/hicexplorer-3.7.6/lib/python3.12/site-packages/hicexplorer/hicFindTADs.py", line 629, in find_consensus_minima
_max, _min = HicFindTads.peakdetect(tad_score_matrix_avg, lookahead=lookahead, chrom=chrom)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/risapps/rhel8/miniforge3/24.5.0-0/envs/hicexplorer-3.7.6/lib/python3.12/site-packages/hicexplorer/hicFindTADs.py", line 510, in peakdetect
min_y, max_y = np.Inf, -np.Inf
^^^^^^
File "/home/mxue/.local/lib/python3.12/site-packages/numpy/init.py", line 400, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions