Skip to content

Incorrect data type in VCF headers for haplotype field  #3

@ajw2329

Description

@ajw2329

Hello! Thanks for writing such an excellent tool!

Currently, Heterogenesis represents haplotypes in generated VCFs using letters A, B, etc, but in the headers of the VCFs, the data type of this field is specified as "Integer" like so:
##FORMAT=<ID=HS,Number=1,Type=Integer,Description="Haplotypes">
This is written in heterogenesis_varincorp.py line 149

This causes type-aware parsers (e.g. vcfR) to incorrectly read in the haplotypes. I've submitted a pull request to address this, which merely changes "Integer" to "Character" (i.e. ##FORMAT=<ID=HS,Number=1,Type=Character,Description="Haplotypes">), which avoids the issue.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions