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

unable to build singularity container, sklearn deprecated + test error #17

Open
jbrnfnd opened this issue May 26, 2023 · 0 comments
Open

Comments

@jbrnfnd
Copy link

jbrnfnd commented May 26, 2023

Hello,

I tried to create a singularity container from the definition file in #16 .
At first, I have to modify the definition file, as sklearn is not longer existing (or atleast is only an empty package).
So change sklearn to scikit-learn.
But now, the test step fails

Merging single values for matrix 0.23029708862304688 Gb
Converting to PyRanges
.....
======================================================================
ERROR: test_run_affinity_propagation (test_result_set.TestResultSet)
----------------------------------------------------------------------
multiprocess.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 156, in
wrapped_function = lambda x: self._function_window_wrapper_tabix(x, function, chromosome, assembly = assembly)
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 116, in _function_window_wrapper_tabix
return function(m), chromosome, start, end
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 196, in run_single_run
raise ex
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 190, in run_single_run
runs = cluster_by_haplotype(gr, seed=seed, iterations=iterations, dampings=dampings, max_missing=max_missing, min_iterations=min_iterations)
File "/usr/local/src/IBSpy-0.4.6/IBSpy/window_affinity_propagation.py", line 168, in cluster_by_haplotype
desc_stats = descriptive_stats(gr)
File "/usr/local/src/IBSpy-0.4.6/IBSpy/window_affinity_propagation.py", line 121, in descriptive_stats
ret['skew'] = skew(melted['value'])
File "/usr/local/lib/python3.9/site-packages/scipy/stats/_axis_nan_policy.py", line 502, in axis_nan_policy_wrapper
res = hypotest_fun_out(*samples, **kwds)
File "/usr/local/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 1305, in skew
m2 = _moment(a, 2, axis, mean=mean)
File "/usr/local/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 1184, in moment
eps = np.finfo(a_zero_mean.dtype).resolution * 10
File "/usr/local/lib/python3.9/site-packages/numpy/core/getlimits.py", line 492, in new
raise ValueError("data type %r not inexact" % (dtype))
ValueError: data type <class 'numpy.object
'> not inexact
"""

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

Traceback (most recent call last):
File "/usr/local/src/IBSpy-0.4.6/tests/test_result_set.py", line 165, in test_run_affinity_propagation
ret = ibspy_results.run_affinity_propagation()
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 214, in run_affinity_propagation
for best, chromosome, start, end in self.map_window_iterator_tabix(function= run_single_run, chromosome=chr):
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 160, in map_window_iterator_tabix
newlist = [x for x in res]
File "/usr/local/src/IBSpy-0.4.6/IBSpy/IBSpy_result_set.py", line 160, in
newlist = [x for x in res]
File "/usr/local/lib/python3.9/site-packages/multiprocess/pool.py", line 870, in next
raise value
ValueError: data type <class 'numpy.object_'> not inexact

----------------------------------------------------------------------

It would be nice from you to help me.

Regards
Jens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant