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

Error: number of columns in the file are less than expected in vcf - there are valid vcf files with just 8 parameters #16

Open
a4xrbj1 opened this issue Mar 4, 2022 · 0 comments

Comments

@a4xrbj1
Copy link

a4xrbj1 commented Mar 4, 2022

Please see the attached file format of the Build 37 human genome reference file:

image link

It consists of the following parameters:

#CHROM
POS
ID
REF
ALT
QUAL
FILTER
INFO

This is a valid VCF file, downloaded from Download link

Line 76 in /lib/index.js should have the number 9 change 8 instead:

if (info.length < 9) {

Line 82 in /lib/index.js should also change the number 8 to 7:

var formatIds = info[7].split(':')

to avoid this error thrown. Thank you!

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

1 participant