{"action":"closed","issue":{"url":"https://api.github.com/repos/cggh/scikit-allel/issues/91","repository_url":"https://api.github.com/repos/cggh/scikit-allel","labels_url":"https://api.github.com/repos/cggh/scikit-allel/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/cggh/scikit-allel/issues/91/comments","events_url":"https://api.github.com/repos/cggh/scikit-allel/issues/91/events","html_url":"https://github.com/cggh/scikit-allel/issues/91","id":162614467,"number":91,"title":"ValueError when running xpehh","user":{"login":"sa-lee","id":8033857,"avatar_url":"https://avatars.githubusercontent.com/u/8033857?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-lee","html_url":"https://github.com/sa-lee","followers_url":"https://api.github.com/users/sa-lee/followers","following_url":"https://api.github.com/users/sa-lee/following{/other_user}","gists_url":"https://api.github.com/users/sa-lee/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-lee/subscriptions","organizations_url":"https://api.github.com/users/sa-lee/orgs","repos_url":"https://api.github.com/users/sa-lee/repos","events_url":"https://api.github.com/users/sa-lee/events{/privacy}","received_events_url":"https://api.github.com/users/sa-lee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cggh/scikit-allel/milestones/2","html_url":"https://github.com/cggh/scikit-allel/milestones/v0.21","labels_url":"https://api.github.com/repos/cggh/scikit-allel/milestones/2/labels","id":1875554,"number":2,"title":"v0.21","description":"","creator":{"login":"alimanfoo","id":703554,"avatar_url":"https://avatars.githubusercontent.com/u/703554?v=3","gravatar_id":"","url":"https://api.github.com/users/alimanfoo","html_url":"https://github.com/alimanfoo","followers_url":"https://api.github.com/users/alimanfoo/followers","following_url":"https://api.github.com/users/alimanfoo/following{/other_user}","gists_url":"https://api.github.com/users/alimanfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/alimanfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alimanfoo/subscriptions","organizations_url":"https://api.github.com/users/alimanfoo/orgs","repos_url":"https://api.github.com/users/alimanfoo/repos","events_url":"https://api.github.com/users/alimanfoo/events{/privacy}","received_events_url":"https://api.github.com/users/alimanfoo/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":2,"state":"open","created_at":"2016-07-11T11:32:08Z","updated_at":"2016-07-11T15:36:04Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-06-28T06:49:50Z","updated_at":"2016-07-11T15:36:04Z","closed_at":"2016-07-11T15:36:04Z","body":"Hi there,\r\nI'm trying to run xpehh on a set of variants. I created two haplotype arrays for each population and then ran xpehh with the default settings and get the following error\r\n```{python}\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-23-7ebd03dbde93> in <module>()\r\n      5     positions = variants_seg[i]['POS'][:]\r\n      6     print h1.shape, h2.shape, len(pos), pos.dtype\r\n----> 7     xpehh_out.append(allel.stats.selection.xpehh(hap1, hap2, positions))\r\n      8     break\r\n      9 \r\n\r\n/Users/lee.s/anaconda/envs/py2/lib/python2.7/site-packages/allel/stats/selection.pyc in xpehh(h1, h2, pos, min_ehh)\r\n    297 \r\n    298     # scan forward\r\n--> 299     ihh1_fwd = ihh_scan_int8(h1, pos, min_ehh=min_ehh)\r\n    300     ihh2_fwd = ihh_scan_int8(h2, pos, min_ehh=min_ehh)\r\n    301 \r\n\r\nallel/opt/stats.pyx in allel.opt.stats.ihh_scan_int8 (allel/opt/stats.c:8568)()\r\n\r\nallel/opt/stats.pyx in allel.opt.stats.ssl2ihh (allel/opt/stats.c:7812)()\r\n\r\nValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()\r\n```\r\n\r\nAny ideas on how to fix or what's going wrong?"}}
{"actor":{"display_login":"alimanfoo"}}