Code Monkey home page Code Monkey logo

Comments (4)

gmcvicker avatar gmcvicker commented on July 29, 2024

Hi Nick. Thanks for letting us know about this problem. Recently I have been testing using just one input file so I didn't notice the problem. I have committed some changes that should fix the issue. Please pull the changes and give it a try again.

from wasp.

ngcrawford avatar ngcrawford commented on July 29, 2024

Looks like the new code fixed the bug! Thanks. I'll let you know if I find any more. ;)

from wasp.

ZhengYaa avatar ZhengYaa commented on July 29, 2024

Hi,
I'm use snp2h5 to convert vcf to h5. I find there is an problem in the latest version.
I use version (v 0.2 & v 0.2.1). The error happened.
...................................................................................................................
long alleles will be truncated to 100bp
writing SNP index to: snp_index.h5
chromosome: C2, length: 52886895bp
reading from file chr_vcf/C2.vcf
counting lines in file
total lines: 0
reading VCF header
ERROR: expected last line in header to start with #CHROM
....................................................................................................................

I check the vcf file, and
....................................................................................................................
grep "#CHR" chr_vcf/C2.vcf
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT SRR3203096
.....................................................................................................................
However, I use the old version (v 01 ), it is fine.

from wasp.

gmcvicker avatar gmcvicker commented on July 29, 2024

Hi ZhengYaa

I believe that this issue was fixed on the master branch after version 0.2.1. Can you try to checkout the master rather than v0.2.1? (I should make a version 0.2.2 that includes the latest changes).

You might also try adding sample names to your header line if you have more than one sample in the VCF, since it looks like you only have one 'SRR3203096'.

Hope this helps,

Graham

from wasp.

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.