Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show file header #1

Open
feilchenfeldt opened this issue Jun 11, 2014 · 3 comments
Open

Show file header #1

feilchenfeldt opened this issue Jun 11, 2014 · 3 comments

Comments

@feilchenfeldt
Copy link

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

@slowkow
Copy link
Owner

slowkow commented Jun 11, 2014

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

@pontikos
Copy link

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

@slowkow
Copy link
Owner

slowkow commented Nov 12, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants