Skip to content

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

@mattcloward

Description

@mattcloward

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions