ahaldane / hom_r20 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello! I've been encountering an error with argpartition when running make_db. It goes like this:
$ ./HOM_r20.py make_db test 1000 targetMSA
Starting 16 workers...
2 17 concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jmart/miniconda3/envs/hom-test/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "./HOM_r20.py", line 182, in makedb_job
return npos, i, process_marg(topmode, npos, i, pos, freq, uniq)
File "./HOM_r20.py", line 149, in process_marg
top = np.argpartition(f, -ntop)[-ntop:]
File "<__array_function__ internals>", line 5, in argpartition
File "/home/jmart/miniconda3/envs/hom-test/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 832, in argpartition
return _wrapfunc(a, 'argpartition', kth, axis=axis, kind=kind, order=order)
File "/home/jmart/miniconda3/envs/hom-test/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 58, in _wrapfunc
return bound(*args, **kwds)
ValueError: kth(=-9) out of bounds (11)
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "./HOM_r20.py", line 550, in <module>
main()
File "./HOM_r20.py", line 546, in main
funcs[known_args.action](remaining_args)
File "./HOM_r20.py", line 221, in make_db
n, i, dat = future.result()
File "/home/jmart/miniconda3/envs/hom-test/lib/python3.8/concurrent/futures/_base.py", line 437, in result
return self.__get_result()
File "/home/jmart/miniconda3/envs/hom-test/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
ValueError: kth(=-9) out of bounds (11)
I've tried this in Python 3.9 and 3.8, with numpy versions 1.21, 1.20, and 1.19, and with highmarg/seqtools compiled on osx-arm64 and linux64. Same error each time, though if I use a lower number of samples like 1-100 it generally finishes with no errors, but not consistently. 80 samples gives an error, but 81 does not.
Let me know if you need more info from me!
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.