Skip to content

Commit

Permalink
fix unit test for doubletons in X-linked dominant genes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy McRae committed Sep 26, 2016
1 parent 404d515 commit 3a845cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_allosomal_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,23 @@ def test_check_variant_without_parents_doubleton(self):
"""

family = self.create_family('F', mom_aff='1', dad_aff='1')
family.father = None

# generate a test variant
var = TrioGenotypes('X', '150', child=create_snv('F', "0/1"),
mother=create_snv("F", "0/1"), father=None)

inh = Allosomal([var], family, self.known_gene, "TEST")
inh.set_trio_genotypes(var)
self.assertEqual(inh.check_variant_without_parents("X-linked Dominant"), "nothing")
self.assertEqual(inh.check_variant_without_parents("X-linked dominant"), "nothing")

# check the varinats passes if inherited from an affected parent
family = self.create_family('F', mom_aff='2', dad_aff='1')
family.father = None

inh = Allosomal([var], family, self.known_gene, "TEST")
inh.set_trio_genotypes(var)
self.assertEqual(inh.check_variant_without_parents("X-linked dominant"), "single_variant")

def test_check_heterozygous_de_novo(self):
""" test that check_heterozygous() works correctly for de novos
Expand Down

0 comments on commit 3a845cf

Please sign in to comment.