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

VCF display of haploid genotype bug #536

Closed
cmdcolin opened this issue Nov 25, 2014 · 0 comments
Closed

VCF display of haploid genotype bug #536

cmdcolin opened this issue Nov 25, 2014 · 0 comments

Comments

@cmdcolin
Copy link
Contributor

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 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant