示例#1
0
 def test3_gff_enrichment(self):
     """ Test gff_enrichment """
     self.motif.pwm_scan_to_gff(self.random, self.random_gff)
     gff_enrichment(self.prom_gff, self.random_gff, 316, 3160, self.tmp)
     f = open(self.tmp)
     f.readline() # Header
     vals = f.readline().strip().split("\t")
     self.assertEquals(vals[0], "TATA-box")
     self.assertLess(float(vals[2]), 1e-60)
     self.assertGreater(float(vals[5]), 1.5)
示例#2
0
 def test3_gff_enrichment(self):
     """ Test gff_enrichment """
     self.motif.pwm_scan_to_gff(self.random, self.random_gff)
     gff_enrichment(self.prom_gff, self.random_gff, 316, 3160, self.tmp)
     f = open(self.tmp)
     f.readline() # Header
     vals = f.readline().strip().split("\t")
     self.assertEquals(vals[0], "TATA-box")
     self.assertLess(float(vals[2]), 1e-60)
     self.assertGreater(float(vals[5]), 1.5)
示例#3
0
	def test3_gff_enrichment(self):
		""" Test gff_enrichment """
		self.motif.pwm_scan_to_gff(self.random, self.random_gff)
		gff_enrichment(self.prom_gff, self.random_gff, 316, 3160, self.tmp)
		self.assertEquals(open(self.enrichment).read(), open(self.tmp).read())
示例#4
0
 def test3_gff_enrichment(self):
     """ Test gff_enrichment """
     self.motif.pwm_scan_to_gff(self.random, self.random_gff)
     gff_enrichment(self.prom_gff, self.random_gff, 316, 3160, self.tmp)
     self.assertEquals(open(self.enrichment).read(), open(self.tmp).read())