pytabix icon indicating copy to clipboard operation
pytabix copied to clipboard

feature request: make it possible to just specify a chromosome in query

Open tommycarstensen opened this issue 9 years ago • 3 comments

Current syntax is: records = tb.querys("1:1000000-1250000")

It would be great, if I could just get all variants on chromosome 1 by doing one of these: records = tb.querys("1") records = tb.querys("1", 0, -1)

tommycarstensen avatar Oct 26 '14 02:10 tommycarstensen

Will this be implemented? I would also like this feature.

moonso avatar Dec 03 '14 10:12 moonso

I agree that this would be useful. I need to learn the specification of the tabix index file in order to implement this feature.

Sorry for the delayed response, but I'm always busy with other work. Patches are very welcome.

slowkow avatar Feb 26 '15 14:02 slowkow

I believe that this is possible using simply tb.querys("1"). It seems to work for me, and it's in line with what tabix provides.

johnwallace123 avatar Apr 27 '15 15:04 johnwallace123