{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/scikit-bio/issues/929","labels_url":"https://api.github.com/repos/biocore/scikit-bio/issues/929/labels{/name}","comments_url":"https://api.github.com/repos/biocore/scikit-bio/issues/929/comments","events_url":"https://api.github.com/repos/biocore/scikit-bio/issues/929/events","html_url":"https://github.com/biocore/scikit-bio/issues/929","id":78737107,"number":929,"title":"slice_from_regex is broken on non-boolean vectors","user":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/biocore/scikit-bio/labels/API","name":"API","color":"c7def8"},{"url":"https://api.github.com/repos/biocore/scikit-bio/labels/bug","name":"bug","color":"006b75"},{"url":"https://api.github.com/repos/biocore/scikit-bio/labels/severity:%20blocking","name":"severity: blocking","color":"ff0000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-20T23:10:04Z","updated_at":"2015-05-20T23:11:22Z","closed_at":null,"body":"```\r\nIn [1]: from skbio import Sequence\r\n\r\nIn [2]: import numpy as np\r\n\r\nIn [3]: a = np.arange(5)\r\n\r\nIn [4]: s = Sequence(\"ABCBCACBCBCA\")\r\n\r\nIn [5]: s[s.slices_from_regex(\"(CB)\", ignore=a)]\r\nOut[5]: Sequence('BCBC', length=4)\r\n```"},"comment":{"url":"https://api.github.com/repos/biocore/scikit-bio/issues/comments/104068350","html_url":"https://github.com/biocore/scikit-bio/issues/929#issuecomment-104068350","issue_url":"https://api.github.com/repos/biocore/scikit-bio/issues/929","id":104068350,"user":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T23:11:22Z","updated_at":"2015-05-20T23:11:22Z","body":"I think there is probably a better way to handle this entirely, such that the array `a` could have been valid input, instead of being inverted blindly and then sliced from a negative offset."}}