{"action":"created","issue":{"url":"https://api.github.com/repos/slowkow/pytabix/issues/5","labels_url":"https://api.github.com/repos/slowkow/pytabix/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/slowkow/pytabix/issues/5/comments","events_url":"https://api.github.com/repos/slowkow/pytabix/issues/5/events","html_url":"https://github.com/slowkow/pytabix/issues/5","id":54926304,"number":5,"title":"query and querys treat genomic ranges differently. ","user":{"login":"mdjones","id":86745,"avatar_url":"https://avatars.githubusercontent.com/u/86745?v=3","gravatar_id":"","url":"https://api.github.com/users/mdjones","html_url":"https://github.com/mdjones","followers_url":"https://api.github.com/users/mdjones/followers","following_url":"https://api.github.com/users/mdjones/following{/other_user}","gists_url":"https://api.github.com/users/mdjones/gists{/gist_id}","starred_url":"https://api.github.com/users/mdjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdjones/subscriptions","organizations_url":"https://api.github.com/users/mdjones/orgs","repos_url":"https://api.github.com/users/mdjones/repos","events_url":"https://api.github.com/users/mdjones/events{/privacy}","received_events_url":"https://api.github.com/users/mdjones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/slowkow/pytabix/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T19:19:43Z","updated_at":"2015-03-21T15:39:59Z","closed_at":"2015-03-21T15:39:59Z","body":"This may be by design but it doesn't seem to be indicated in the documentation. It seems that I have to diminish the start coordinate by one if I use query to get the same result as querys. querys output is the same as the command line tabix command. \r\n\r\n```python\r\ntabixFile = '/da/sequencing/annotation/dbNSFP/dbNSFP2.4.txt.gz'\r\ntabix = tb.open(tabixFile)\r\n\r\nrecords = tabix.query('2', 219855690, 219855702)\r\nl1 = []\r\nfor record in records:\r\n    l1.append(record[0]+\":\"+record[1]+'-'+record[3])\r\n\r\nprint (len(l1))\r\nprint (l1)\r\nprint (\"#$%#$%$#%#$%#$%$#%#$%\"   )\r\n\r\nrecords = tabix.querys('2:219855691-219855702')\r\nl2 = []\r\nfor record in records:\r\n    l2.append(record[0]+\":\"+record[1]+'-'+record[3])\r\n\r\nprint (len(l2))\r\nprint (l2)\r\n```\r\n```python\r\n25\r\n['2:219855691-C', '2:219855691-G', '2:219855691-T', '2:219855692-C', '2:219855692-T', '2:219855694-A', '2:219855694-C', '2:219855694-T', '2:219855695-A', '2:219855695-C', '2:219855695-G', '2:219855697-C', '2:219855697-G', '2:219855697-T', '2:219855698-A', '2:219855698-G', '2:219855698-T', '2:219855700-A', '2:219855700-G', '2:219855700-T', '2:219855701-A', '2:219855701-C', '2:219855701-T', '2:219855702-C', '2:219855702-T']\r\n#$%#$%$#%#$%#$%$#%#$%\r\n\r\n25\r\n['2:219855691-C', '2:219855691-G', '2:219855691-T', '2:219855692-C', '2:219855692-T', '2:219855694-A', '2:219855694-C', '2:219855694-T', '2:219855695-A', '2:219855695-C', '2:219855695-G', '2:219855697-C', '2:219855697-G', '2:219855697-T', '2:219855698-A', '2:219855698-G', '2:219855698-T', '2:219855700-A', '2:219855700-G', '2:219855700-T', '2:219855701-A', '2:219855701-C', '2:219855701-T', '2:219855702-C', '2:219855702-T']\r\n```"},"comment":{"url":"https://api.github.com/repos/slowkow/pytabix/issues/comments/84374318","html_url":"https://github.com/slowkow/pytabix/issues/5#issuecomment-84374318","issue_url":"https://api.github.com/repos/slowkow/pytabix/issues/5","id":84374318,"user":{"login":"slowkow","id":209714,"avatar_url":"https://avatars.githubusercontent.com/u/209714?v=3","gravatar_id":"","url":"https://api.github.com/users/slowkow","html_url":"https://github.com/slowkow","followers_url":"https://api.github.com/users/slowkow/followers","following_url":"https://api.github.com/users/slowkow/following{/other_user}","gists_url":"https://api.github.com/users/slowkow/gists{/gist_id}","starred_url":"https://api.github.com/users/slowkow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slowkow/subscriptions","organizations_url":"https://api.github.com/users/slowkow/orgs","repos_url":"https://api.github.com/users/slowkow/repos","events_url":"https://api.github.com/users/slowkow/events{/privacy}","received_events_url":"https://api.github.com/users/slowkow/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T15:39:59Z","updated_at":"2015-03-21T15:39:59Z","body":"Fixed in 1ec53fff0812047acad1b775c7085d0dcdeaf79b"}}