VCF display of haploid genotype bug #536

cmdcolin opened this Issue Nov 25, 2014 · 0 comments


None yet
1 participant

cmdcolin commented Nov 25, 2014

One of our organisms has a partial haploid life cycle (edit: also called haplodiploid...) and this causes an error when trying to open the details of a variant in both the 1.10 and 1.11 branch of jbrowse

The latest code line 143 of _VariantDetailMixin says:

var splitter = value_parse.match(/[\|\/]/g)[0];

The older code at line 123 of _VariantDetailMixin

var splitter = value.match(/\D/g)[0];

Both of these assume the regex will return at least 1 result, which in the haploid case is false.

@cmdcolin cmdcolin closed this Jan 20, 2015

@cmdcolin cmdcolin added this to the 1.11.6 milestone Jan 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment