Skip to content

bcftools fails to index VCF with extra trailing new line #45

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

Closed
winni2k opened this issue May 7, 2014 · 1 comment
Closed

bcftools fails to index VCF with extra trailing new line #45

winni2k opened this issue May 7, 2014 · 1 comment

Comments

@winni2k
Copy link
Contributor

winni2k commented May 7, 2014

Hi,
I tried indexing the bgzipped example VCF from the bioperl project found at http://www.well.ox.ac.uk/~winni/outgoing/example.vcf.gz and I get the following error:

$ bcftools index example.vcf.gz
[E::get_intv] failed to parse TBX_VCF, was wrong -p [type] used?

[E::hts_idx_push] unsorted positions

When I remove the trailing new line the error disapears. Is this a bug?

@pd3
Copy link
Member

pd3 commented May 7, 2014

Hi,
no, this is not a bug. The VCF is broken, empty lines are not allowed.

@pd3 pd3 closed this as completed Jun 13, 2014
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