コード例 #1
0
 def testOverlapping(self):
     """
     If a primer is present twice but is overlapping, only the first
     instance should be returned.
     """
     seq = Seq('GAAA', IUPAC.unambiguous_dna)
     self.assertEqual([1], findPrimer('AA', seq))
コード例 #2
0
 def testFoundAtEnd(self):
     """
     If a primer is found at the end of a sequence, the correct value
     must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual([2], findPrimer('GT', 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], findPrimer('ACG', seq))
コード例 #4
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testOverlapping(self):
     """
     If a primer is present twice but is overlapping, only the first
     instance should be returned.
     """
     seq = Seq('GAAA', IUPAC.unambiguous_dna)
     self.assertEqual([1], findPrimer('AA', seq))
コード例 #5
0
 def testFoundAtStart(self):
     """
     If a primer is found at the start of a sequence, a list containing 0
     must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual([0], findPrimer('AC', seq))
コード例 #6
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], findPrimer('ACG', seq))
コード例 #7
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testFoundAtEnd(self):
     """
     If a primer is found at the end of a sequence, the correct value
     must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual([2], findPrimer('GT', seq))
コード例 #8
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testFoundAtStart(self):
     """
     If a primer is found at the start of a sequence, a list containing 0
     must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual([0], findPrimer('AC', seq))
コード例 #9
0
 def testNotFound(self):
     """
     If a primer is not found, the empty list must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual([], findPrimer('BLAH', seq))
コード例 #10
0
ファイル: test_sequence.py プロジェクト: acorg/dark-matter
 def testNotFound(self):
     """
     If a primer is not found, the empty list must be returned.
     """
     seq = Seq('ACGT', IUPAC.unambiguous_dna)
     self.assertEqual([], findPrimer('BLAH', seq))