Giter Site home page Giter Site logo

hom_r20's People

Contributors

ahaldane avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hom_r20's Issues

Issue with argpartition

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.