Validate VariantContext AC and AF without genotypes #757

Closed
ronlevine opened this Issue Nov 25, 2016 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

ronlevine commented Nov 25, 2016

Verify

From broadinstitute/gsa-unstable#1053 (comment)

Subject of the issue

A VC with a locus with no genotypes should check that AN and AF have the same number items as alternate alleles.

Your environment

  • version of htsjdk - 2.7.0
  • version of java - 1.8.0_66
  • which OS - macOS version 10.12.1 (16B2555)

Steps to reproduce

Add
1 768589 . A C,G 76 PASS AC=1;AF=0.00047;AN=2120 to the DataProvider for VariantContextUnitTest#testValidateChromosomeCountsFailure and run the test:
./gradlew test --tests htsjdk.variant.variantcontext.VariantContextUnitTest

Expected behaviour

A TribbleException should be thrown.

Actual behaviour

No exception is thrown.

ronlevine self-assigned this Nov 25, 2016

ronlevine changed the title from Validate VariantContext AC and AF with missing genotypes to Validate VariantContext AC and AF without genotypes Nov 25, 2016

Contributor

ronlevine commented Dec 7, 2016

Closing since #759 is merged.

ronlevine closed this Dec 7, 2016

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