コード例 #1
0
 def testOverlappingBackwards(self):
     """
     If a primer is present twice backwards but is overlapping, only
     the first instance should be returned.
     """
     seq = Seq('GTTT', IUPAC.unambiguous_dna)
     self.assertEqual(([], [1]), findPrimerBidi('AA', seq))
コード例 #2
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testOverlappingBackwards(self):
     """
     If a primer is present twice backwards but is overlapping, only
     the first instance should be returned.
     """
     seq = Seq('GTTT', IUPAC.unambiguous_dna)
     self.assertEqual(([], [1]), findPrimerBidi('AA', seq))
コード例 #3
0
 def testFoundMultiple(self):
     """
     If a primer is found multiple times, the correct value
     must be returned.
     """
     seq = Seq('ACGTACGT', IUPAC.unambiguous_dna)
     self.assertEqual(([0, 4], [1, 5]), findPrimerBidi('ACG', seq))
コード例 #4
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testFoundMultiple(self):
     """
     If a primer is found multiple times, the correct value
     must be returned.
     """
     seq = Seq('ACGTACGT', IUPAC.unambiguous_dna)
     self.assertEqual(([0, 4], [1, 5]), findPrimerBidi('ACG', seq))
コード例 #5
0
 def testOverlappingForwards(self):
     """
     If a primer is present twice forwards but is overlapping, only
     the first instance should be returned.
     """
     seq = Seq('GAAA')
     self.assertEqual(([1], []), findPrimerBidi('AA', seq))
コード例 #6
0
 def testFoundEndStart(self):
     """
     If a primer is found in both directions in a sequence (end of
     the forward sequence, start of the reverse complement), the
     correct value must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual(([2], [0]), findPrimerBidi('GT', seq))
コード例 #7
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testFoundEndStart(self):
     """
     If a primer is found in both directions in a sequence (end of
     the forward sequence, start of the reverse complement), the
     correct value must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual(([2], [0]), findPrimerBidi('GT', seq))
コード例 #8
0
 def testFoundStartEnd(self):
     """
     If a primer is found in both directions in a sequence (start of
     the forward sequence, end of the reverse complement), the
     correct value must be returned.
     """
     seq = Seq('ACGT')
     self.assertEqual(([0], [2]), findPrimerBidi('AC', seq))
コード例 #9
0
 def testNotFound(self):
     """
     If a primer is not found, empty lists must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual(([], []), findPrimerBidi('BLAH', seq))
コード例 #10
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testNotFound(self):
     """
     If a primer is not found, empty lists must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual(([], []), findPrimerBidi('BLAH', seq))