예제 #1
0
 def test_dna_to_rvd(self):
     """
     Translate DNA to RVD pairs.
     """
     expected = 'NI NG NI HD HD NN NG HD NG NG NI NG NG NG NG'
     rvd = pfusx.dna_to_rvd('ATACCGTCTTATTTT')
     self.assertEqual(rvd, expected)
예제 #2
0
 def test_dna_to_rvd_allow_unspecified_purine(self):
     """
     Translate DNA to RVD pairs with unspecified purines.
     """
     expected = 'NI NG NI HD HD NN NG HD NG NG NI NG NG NG NG'
     rvd = pfusx.dna_to_rvd('ATACCRTCTTATTTT')
     self.assertEqual(rvd, expected)
예제 #3
0
 def test_dna_to_rvd(self):
     """
     Translate DNA to RVD pairs.
     """
     expected = 'NI NG NI HD HD NN NG HD NG NG NI NG NG NG NG'
     rvd = pfusx.dna_to_rvd('ATACCGTCTTATTTT')
     self.assertEqual(rvd, expected)
예제 #4
0
 def test_dna_to_rvd_allow_unspecified_purine(self):
     """
     Translate DNA to RVD pairs with unspecified purines.
     """
     expected = 'NI NG NI HD HD NN NG HD NG NG NI NG NG NG NG'
     rvd = pfusx.dna_to_rvd('ATACCRTCTTATTTT')
     self.assertEqual(rvd, expected)
예제 #5
0
 def test_dna_to_rvd_invalid_character(self):
     """
     Translate DNA to RCD pairs, minus invalid characters.
     """
     with self.assertRaises(ValueError):
         pfusx.dna_to_rvd('AXACCGTCTTATTTT')
예제 #6
0
 def test_dna_to_rvd_disallow_unspecified_pyrimidines(self):
     """
     Translate DNA to RVD pairs only with specified pyrimidines.
     """
     with self.assertRaises(ValueError):
         pfusx.dna_to_rvd('AYACCGTCTTATTTT')
예제 #7
0
 def test_dna_to_rvd_invalid_character(self):
     """
     Translate DNA to RCD pairs, minus invalid characters.
     """
     with self.assertRaises(ValueError):
         pfusx.dna_to_rvd('AXACCGTCTTATTTT')
예제 #8
0
 def test_dna_to_rvd_disallow_unspecified_pyrimidines(self):
     """
     Translate DNA to RVD pairs only with specified pyrimidines.
     """
     with self.assertRaises(ValueError):
         pfusx.dna_to_rvd('AYACCGTCTTATTTT')