{"action":"created","issue":{"url":"https://api.github.com/repos/daler/pybedtools/issues/132","labels_url":"https://api.github.com/repos/daler/pybedtools/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/daler/pybedtools/issues/132/comments","events_url":"https://api.github.com/repos/daler/pybedtools/issues/132/events","html_url":"https://github.com/daler/pybedtools/issues/132","id":66980591,"number":132,"title":"tabix indexed BedTool evaluates to None","user":{"login":"roryk","id":414586,"avatar_url":"https://avatars.githubusercontent.com/u/414586?v=3","gravatar_id":"","url":"https://api.github.com/users/roryk","html_url":"https://github.com/roryk","followers_url":"https://api.github.com/users/roryk/followers","following_url":"https://api.github.com/users/roryk/following{/other_user}","gists_url":"https://api.github.com/users/roryk/gists{/gist_id}","starred_url":"https://api.github.com/users/roryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roryk/subscriptions","organizations_url":"https://api.github.com/users/roryk/orgs","repos_url":"https://api.github.com/users/roryk/repos","events_url":"https://api.github.com/users/roryk/events{/privacy}","received_events_url":"https://api.github.com/users/roryk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-07T20:14:17Z","updated_at":"2015-04-08T20:49:44Z","closed_at":null,"body":"Hi Ryan,\r\n\r\nBefore tabix indexing, if a BedTool is non-empty, it will be treated as not None, but after tabix indexing it will not.\r\n\r\n```\r\nimport pybedtools\r\nfoo = pybedtools.example_bedtool('b.bed')\r\nif foo:\r\n    print \"Before tabix indexing.\"\r\nfoo = foo.tabix()\r\nif foo:\r\n    print \"After tabix indexing.\"\r\n```\r\n\r\nI'm cool with 'don't do that' as a valid answer if it wasn't intended to be used that way. :)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/daler/pybedtools/issues/comments/91033122","html_url":"https://github.com/daler/pybedtools/issues/132#issuecomment-91033122","issue_url":"https://api.github.com/repos/daler/pybedtools/issues/132","id":91033122,"user":{"login":"daler","id":115406,"avatar_url":"https://avatars.githubusercontent.com/u/115406?v=3","gravatar_id":"","url":"https://api.github.com/users/daler","html_url":"https://github.com/daler","followers_url":"https://api.github.com/users/daler/followers","following_url":"https://api.github.com/users/daler/following{/other_user}","gists_url":"https://api.github.com/users/daler/gists{/gist_id}","starred_url":"https://api.github.com/users/daler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daler/subscriptions","organizations_url":"https://api.github.com/users/daler/orgs","repos_url":"https://api.github.com/users/daler/repos","events_url":"https://api.github.com/users/daler/events{/privacy}","received_events_url":"https://api.github.com/users/daler/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T20:49:44Z","updated_at":"2015-04-08T20:49:44Z","body":"Thanks for the file. But . . . argh, it's working fine for me on OSX 10.9.5.\r\n\r\nMy guess is that it's on the Cython side. So 1) I'll test this on an OSX 10.10 machine and 2) I'll get together some more tests for the Cython side that you can try.\r\n\r\n\r\n\r\n"}}