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

A vcf file with multiple individuals gives duplicate row data #15

Open
MattCloward opened this issue Jul 1, 2019 · 0 comments
Open

Comments

@MattCloward
Copy link

For a vcf file containing data for multiple individuals per line, the the vcf on data event returns correct individual names, but the data for each individual is a duplicate of the first individual's data.
To fix this issue, change line 89 in index.js from this:
var formatParts = info[9].split(':')
to this:
var formatParts = info[9 + j].split(':')

The for loop simply needs to loop to each unique individual in each line.

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