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

Missing .vcf.gz.tbi produces misleading error #1414

Open
adamnovak opened this issue Feb 1, 2018 · 3 comments
Open

Missing .vcf.gz.tbi produces misleading error #1414

adamnovak opened this issue Feb 1, 2018 · 3 comments

Comments

@adamnovak
Copy link
Member

If you try to do vg construct with a .vcf.gz file that has no associated .tbi, you get this message:

[tabix++] the index file is older than the vcf file. Please use '-f' to overwrite or reindex.

The message is doubly wrong: there's no older index file around (it's just absent) and there's no -f option that can be used to solve the problem.

The message should be replaced with a more informative one telling the user to index the file.

@adamnovak adamnovak added this to the Sprint 2018-02-05 milestone Feb 1, 2018
@adamnovak adamnovak changed the title Minssing .vcf.gz.tbi produces misleading error Missing .vcf.gz.tbi produces misleading error Feb 1, 2018
@adamnovak adamnovak removed this from the Sprint 2018-02-05 milestone Feb 5, 2018
@verne91
Copy link

verne91 commented Aug 25, 2019

I come across this problem. So how can I deal with it?

@adamnovak
Copy link
Member Author

@verne91 The way to actually solve the problem is to delete the old index with rm whatever.vcf.gz.tbi and then use tabix -p vcf whatever.vcf.gz to regenerate it from the vcf.

If you're absolutely positive the index corresponds to the vcf (and you just downloaded them in the wrong order or something) you can use touch whatever.vcf.gz.tbi to make the tabix file look newer than the vcf, without rebuilding it.

@verne91
Copy link

verne91 commented Aug 26, 2019

Yes. "touch" helps!

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

No branches or pull requests

2 participants