Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 4
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))
Exemplo n.º 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))
Exemplo n.º 6
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))
Exemplo n.º 7
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))
Exemplo n.º 8
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))
Exemplo n.º 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))
Exemplo n.º 10
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))