示例#1
0
 def test_2_dominantes(self):
     # 0 -> 100%
     # 1 -> 0%
     self.assertEqual([1.0, 0.0], gattaca("AA", "AA"))
示例#2
0
 def test_2_recessivos_e_2_heterozigotos(self):
     self.assertEqual([0.25, 0.5, 0.25], gattaca("aaaa", "AaAa"))
示例#3
0
 def test_2_recessivos_e_2_recessivos(self):
     self.assertEqual([0.0, 0.0, 1.00], gattaca("aaaa", "aaaa"))
示例#4
0
 def test_1_recessivo_1_heterozigoto(self):
     self.assertEqual([0.5, 0.5], gattaca("aa", "Aa"))
示例#5
0
 def test_2_dominantes_e_2_dominantes(self):
     self.assertEqual([1.0, 0.0, 0.0], gattaca("AAAA", "AAAA"))
示例#6
0
 def test_1_dominante_1_recessivo(self):
     self.assertEqual([1.0, 0.0], gattaca("AA", "aa"))
示例#7
0
 def test_2_heterozigotos(self):
     self.assertEqual([0.75, 0.25], gattaca("Aa", "Aa"))
示例#8
0
 def test_2_recessivos_e_2_recessivos(self):
     self.assertEqual([0.0, 0.0, 1.00], gattaca("aaaa", "aaaa"))
示例#9
0
 def test_2_dominantes(self):
     # 0 -> 100%
     # 1 -> 0%
     self.assertEqual([1.0, 0.0], gattaca("AA", "AA"))
示例#10
0
 def test_2_recessivos_e_2_heterozigotos(self):
     self.assertEqual([0.25, 0.5, 0.25], gattaca("aaaa", "AaAa"))
示例#11
0
 def test_2_dominantes_e_2_dominantes(self):
     self.assertEqual([1.0, 0.0, 0.0], gattaca("AAAA", "AAAA"))
示例#12
0
 def test_1_recessivo_1_heterozigoto(self):
     self.assertEqual([0.5, 0.5], gattaca("aa", "Aa"))
示例#13
0
 def test_2_heterozigotos(self):
     self.assertEqual([0.75, 0.25], gattaca("Aa", "Aa"))
示例#14
0
 def test_1_dominante_1_recessivo(self):
     self.assertEqual([1.0, 0.0], gattaca("AA", "aa"))