pytabix icon indicating copy to clipboard operation
pytabix copied to clipboard

Show file header

Open feilchenfeldt opened this issue 10 years ago • 3 comments

Hi,

pytabix is very useful, thanks for developing it. However I have one issue:

Is there a way to access the header line of the input data file? I am working with tsv-files with may columns and it would be very useful to see the orignal header line.

For example, something like: import tabix tb = tabix.open("infile.tsv.gz") chunk = tb.query("Chr1",10000,20000) print tb.header

or:

print chunk.header

Thanks, Hannes

feilchenfeldt avatar Jun 11 '14 09:06 feilchenfeldt

Thanks, Hannes! I also want this feature, so I'll let you know when I get there.

slowkow avatar Jun 11 '14 13:06 slowkow

Hi yes any progress on this? It is quite an essential feature I think!

pontikos avatar Nov 12 '15 19:11 pontikos

@pontikos I'd be very happy to review and accept a pull request!

slowkow avatar Nov 12 '15 23:11 slowkow