Exemple #1
0
	def test_rc_matches(self):
		occurrences = dnaseq.naive_with_rc("CCATCTGAT", "ATC")
		self.assertEqual([2, 6], occurrences)
Exemple #2
0
	def test_one_match(self):
		occurrences = dnaseq.naive_with_rc("CCATCC", "AT")
		self.assertEqual([2], occurrences)
Exemple #3
0
	def test_more_matches(self):
		occurrences = dnaseq.naive_with_rc("CCATCAT", "AT")
		self.assertEqual([2, 5], occurrences)
Exemple #4
0
 def test_rc_matches(self):
     occurrences = dnaseq.naive_with_rc("CCATCTGAT", "ATC")
     self.assertEqual([2, 6], occurrences)
Exemple #5
0
	def test_no_match(self):
		occurrences = dnaseq.naive_with_rc("AAAAAA", "CC")
		self.assertEqual([], occurrences)
Exemple #6
0
 def test_one_match(self):
     occurrences = dnaseq.naive_with_rc("CCATCC", "AT")
     self.assertEqual([2], occurrences)
Exemple #7
0
 def test_more_matches(self):
     occurrences = dnaseq.naive_with_rc("CCATCAT", "AT")
     self.assertEqual([2, 5], occurrences)
Exemple #8
0
 def test_no_match(self):
     occurrences = dnaseq.naive_with_rc("AAAAAA", "CC")
     self.assertEqual([], occurrences)
Exemple #9
0
def question_01():
	occurrences = dnaseq.naive_with_rc(lambda_virus, "AGGT")
	print "question_01: %i" % len(occurrences)
Exemple #10
0
def question_04():
	occurrences = dnaseq.naive_with_rc(lambda_virus, "AGTCGA")
	print "question_04: %i" % occurrences[0]
Exemple #11
0
def question_03():
	occurrences = dnaseq.naive_with_rc(lambda_virus, "ACTAAGT")
	print "question_03: %i" % occurrences[0]
Exemple #12
0
def question_02():
	occurrences = dnaseq.naive_with_rc(lambda_virus, "TTAA")
	print "question_02: %i" % len(occurrences)