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

Improve "cannot setRegion" error message / failure mode #6

Closed
ryan-williams opened this issue Mar 11, 2015 · 3 comments
Closed

Improve "cannot setRegion" error message / failure mode #6

ryan-williams opened this issue Mar 11, 2015 · 3 comments

Comments

@ryan-williams
Copy link
Member

I am running vg and getting this error:

$ ./vg construct -r hg19.fasta -v NA12878.vcf
cannot setRegion on a non-tabix indexed file
  1. help debugging would be appreciated
  2. a more descriptive error message would be helpful here.

I see that it comes from vcflib but that's all I've got.

@ekg
Copy link
Member

ekg commented Mar 11, 2015

tabix is in htslib. You use it to
index "block gzipped" (bgzipped) files.

You use bgzip and tabix like this:

bgzip NA12878.vcf
tabix -p vcf NA12878.vcf.gz

Now you can use the VCF file for construction:

./vg construct -r hg19.fasta -v NA12878.vcf.gz

Probably the error message (and you're right that it's in vcflib) just
needs to indicate this process.

On Wed, Mar 11, 2015 at 12:04 AM, Ryan Williams notifications@github.com
wrote:

I am running vg and getting this error:

$ ./vg construct -r hg19.fasta -v NA12878.vcf
cannot setRegion on a non-tabix indexed file

  1. help debugging would be appreciated
  2. a more descriptive error message would be helpful here.

I see that it comes from vcflib
https://github.com/ekg/vcflib/blob/b1dfd7a73140f9b12cb8fd2a554d70188ff05cca/src/Variant.cpp#L1313
but that's all I've got.


Reply to this email directly or view it on GitHub
#6.

@ekg
Copy link
Member

ekg commented Mar 11, 2015

Sorry if this is pedantic, but in case someone else gets caught by it
before the fix propagates to various repos that depend on vcflib.

On Wed, Mar 11, 2015 at 12:16 AM, Erik Garrison erik.garrison@gmail.com
wrote:

tabix is in htslib. You use it to
index "block gzipped" (bgzipped) files.

You use bgzip and tabix like this:

bgzip NA12878.vcf
tabix -p vcf NA12878.vcf.gz

Now you can use the VCF file for construction:

./vg construct -r hg19.fasta -v NA12878.vcf.gz

Probably the error message (and you're right that it's in vcflib) just
needs to indicate this process.

On Wed, Mar 11, 2015 at 12:04 AM, Ryan Williams notifications@github.com
wrote:

I am running vg and getting this error:

$ ./vg construct -r hg19.fasta -v NA12878.vcf
cannot setRegion on a non-tabix indexed file

  1. help debugging would be appreciated
  2. a more descriptive error message would be helpful here.

I see that it comes from vcflib
https://github.com/ekg/vcflib/blob/b1dfd7a73140f9b12cb8fd2a554d70188ff05cca/src/Variant.cpp#L1313
but that's all I've got.


Reply to this email directly or view it on GitHub
#6.

@ryan-williams
Copy link
Member Author

no that is perfect, thanks

@ekg ekg mentioned this issue Apr 5, 2019
adamnovak pushed a commit to adamnovak/vg that referenced this issue Sep 16, 2021
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

3 participants