Пример #1
0
 def test_tal_sequence(self):
     """
     Segment TAL sequence.
     """
     result = pfusx.tal_to_codons('ATACCRTCTTATTT')
     expected = ['ATA', 'CCR', 'TCT', 'TAT', 'TT']
     self.assertEqual(result, expected)
Пример #2
0
 def test_tal_sequence_sixteen(self):
     """
     Segment 16-character TAL sequence.
     """
     result = pfusx.tal_to_codons('ATACCRTCTTATTTA')
     expected = ['ATA', 'CCR', 'TCT', 'TAT', 'TTA']
     self.assertEqual(result, expected)
Пример #3
0
 def test_tal_sequence_sixteen(self):
     """
     Segment 16-character TAL sequence.
     """
     result = pfusx.tal_to_codons('ATACCRTCTTATTTA')
     expected = ['ATA', 'CCR', 'TCT', 'TAT', 'TTA']
     self.assertEqual(result, expected)
Пример #4
0
 def test_tal_sequence(self):
     """
     Segment TAL sequence.
     """
     result = pfusx.tal_to_codons('ATACCRTCTTATTT')
     expected = ['ATA', 'CCR', 'TCT', 'TAT', 'TT']
     self.assertEqual(result, expected)
Пример #5
0
	def test_fusx_query(self):
		"""
		Query FusX database to find the well positions of necessary plasmids.
		"""
		# Example from the FusX PHP script at <http://talendesign.org>.
		rvd = pfusx.rvd_to_tal('NI NG NI HD HD NN NG HD NG NG NI NG NG NG NG')
		sequences = pfusx.tal_to_codons(rvd)
		result = pfusx.get_fusx_locations(sequences)
		expected = [
			('pFX1', 'E2'), ('pFX2', 'G3'), ('pFX3', 'H7'), ('pFX4', 'D7'),
			('pB2/B3', 'H12')
		]
		self.assertEqual(result, expected)
Пример #6
0
 def test_invalid_tal_sequence(self):
     with self.assertRaises(ValueError):
         pfusx.tal_to_codons('HELLO :)')
Пример #7
0
 def test_invalid_tal_sequence(self):
     with self.assertRaises(ValueError):
         pfusx.tal_to_codons('HELLO :)')