deeptools / deepTools

Tools to process and analyze deep sequencing data.
Other
673 stars 208 forks source link

computeMatrix results in AttributeError: module 'numpy' has no attribute 'NAN' #1324

Closed yonniejon closed 2 hours ago

yonniejon commented 2 hours ago

Welcome to deepTools GitHub repository! Before opening the issue please check that the following requirements are met :

import numpy as np np.version '2.1.0'

multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/lib/python3.11/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, *kwds)) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/multiprocessing/pool.py", line 48, in mapstar return list(map(args)) ^^^^^^^^^^^^^^^^ File "/cs/cbio/jon/jon_v/lib/python3.11/site-packages/deeptools/heatmapper.py", line 174, in compute_sub_matrix_wrapper return heatmapper.compute_sub_matrix_worker(*args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cs/cbio/jon/jon_v/lib/python3.11/site-packages/deeptools/heatmapper.py", line 379, in compute_sub_matrix_worker sub_matrix[:] = np.NAN ^^^^^^ File "/cs/cbio/jon/jon_v/lib/python3.11/site-packages/numpy/init.py", line 414, in getattr raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'NAN' """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/cs/usr/jrosensk/.local/bin/computeMatrix", line 8, in sys.exit(main()) ^^^^^^ File "/cs/cbio/jon/jon_v/lib/python3.11/site-packages/deeptools/computeMatrix.py", line 398, in main hm.computeMatrix(scores_file_list, args.regionsFileName, parameters, blackListFileName=args.blackListFileName, verbose=args.verbose, allArgs=args) File "/cs/cbio/jon/jon_v/lib/python3.11/site-packages/deeptools/heatmapper.py", line 252, in computeMatrix res, labels = mapReduce.mapReduce([score_file_list, parameters], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cs/cbio/jon/jon_v/lib/python3.11/site-packages/deeptools/mapReduce.py", line 142, in mapReduce res = pool.map_async(func, TASKS).get(9999999) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/multiprocessing/pool.py", line 774, in get raise self._value AttributeError: module 'numpy' has no attribute 'NAN'

yonniejon commented 2 hours ago

This is a duplicate of https://github.com/deeptools/deepTools/issues/1322