コード例 #1
0
 def test_create_base_sub_7(self): 
     alleles = [1, 1]
     ref = 'T'
     alt = 'C'
     expected = 'C'
     self.assertEqual(create_base_sub(alleles, ref, alt), expected)
コード例 #2
0
 def test_create_base_sub_5(self):
     alleles = [1, 2]
     ref = 'TCG'
     alt = 'TG,T,TCAG'
     expected = 'TCG'
     self.assertEqual(create_base_sub(alleles, ref, alt), expected)
コード例 #3
0
 def test_create_base_sub_1(self): 
     alleles = [1, 2] 
     ref = 'C'
     alt = 'A,C,G,T' 
     expected = 'M'
     self.assertEqual(create_base_sub(alleles, ref, alt), expected)
コード例 #4
0
 def test_create_base_sub_2(self):
     alleles = [0, 1] 
     ref  = 'GT'
     alt = 'G, GTC'
     expected = 'GT'
     self.assertEqual(create_base_sub(alleles, ref, alt), expected)
コード例 #5
0
 def test_create_base_sub(self):
     alleles = [0, 1]
     ref = 'A'
     alt = 'T'
     expected = 'W'
     self.assertEqual(create_base_sub(alleles, ref, alt), expected)