Code Monkey home page Code Monkey logo

Comments (3)

ekg avatar ekg commented on May 27, 2024

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 [email protected]
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.

from vg.

ekg avatar ekg commented on May 27, 2024

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 [email protected]
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 [email protected]
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.

from vg.

ryan-williams avatar ryan-williams commented on May 27, 2024

no that is perfect, thanks

from vg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.