annotate commons/pyRepetUnit/convCoord/test/TestConvCoordWithOverlapps.py @ 31:0ab839023fe4

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 14:33:21 -0400
parents 94ab73e8a190
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
1 import unittest
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
2 import os
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
3 import time
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4 from commons.core.utils.FileUtils import FileUtils
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5 from commons.core.sql.DbMySql import DbMySql
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 class Test_ConvCoordWithOverlaps( unittest.TestCase ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9 pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 # def setUp(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12 # self._uniqId = "%s_%s" % ( time.strftime("%Y%m%d%H%M%S") , os.getpid() )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13 # self._mapFile = "map_file.map"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 # _MockMapFile( self._mapFile )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
15 # self._resultFile = "dummyObsFile_%s" % ( self._uniqId )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
16 # self._refFileToCompare = "dummyExpFile_%s" % ( self._uniqId )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
17 # self._configFileName = "dummyConfigFile_%s" % ( self._uniqId )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
18 # configF = open(self._configFileName, "w" )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
19 # configF.write( "[repet_env]\n" )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
20 # configF.write( "repet_host: %s\n" % ( os.environ["REPET_HOST"] ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
21 # configF.write( "repet_user: %s\n" % ( os.environ["REPET_USER"] ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
22 # configF.write( "repet_pw: %s\n" % ( os.environ["REPET_PW"] ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
23 # configF.write( "repet_db: %s\n" % ( os.environ["REPET_DB"] ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
24 # configF.write( "repet_port: %s\n" % ( os.environ["REPET_PORT"] ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
25 # configF.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
26 # self._db = DbMySql( cfgFileName = self._configFileName )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
27 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
28 # def tearDown(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
29 # os.remove( self._mapFile )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
30 # os.remove( self._resultFile )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
31 # os.remove( self._refFileToCompare )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
32 # self._db.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
33 # self._uniqId = None
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
34 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
35 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
36 # def test_run_TwoHitsOverlapOnFirstAndSecondChunks( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
37 # file2Process = "two_hits_overlap_on_first_and_second_chunk.align"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
38 # linesToProcess = [ "chunk1" + "\t" + "95535" + "\t" + "95570" + "\t" + "sbj2" + "\t" + "125423" + "\t" + "125467" + "\t" + "7e-15" + "\t" + "82" + "\t" + "97.78" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
39 # "chunk2" + "\t" + "5544" + "\t" + "5575" + "\t" + "sbj2" + "\t" + "125457" + "\t" + "133465" + "\t" + "2e-38" + "\t" + "83" + "\t" + "65" + "\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
40 # _MockAlignFile( file2Process, linesToProcess )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
41 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
42 # convCoord = ConvCoord( file2Process, "q", self._mapFile, self._resultFile, "", 0, self._db )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
43 # convCoord.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
44 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
45 # refLine = ["dmel_chr4" + "\t" + "95535" + "\t" + "95575" + "\t" + "sbj2" + "\t" + "125423" + "\t" + "133465" + "\t" + "2e-38" + "\t" + "83" + "\t" + "97.78" + "\n"]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
46 # _MockAlignFile( self._refFileToCompare, refLine )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
47 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
48 # self.assertTrue( FileUtils.are2FilesIdentical( self._refFileToCompare, self._resultFile ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
49 # os.remove( file2Process )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
50 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
51 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
52 # def test_run_ThreeHitsOverlapOnFirstAndSecondChunks( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
53 # file2Process = "three_hits_overlap_on_first_and_second_chunk.align"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
54 # linesToProcess = [ "chunk1" + "\t" + "95535" + "\t" + "95570" + "\t" + "sbj2" + "\t" + "125423" + "\t" + "125467" + "\t" + "7e-15" + "\t" + "82" + "\t" + "97.78" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
55 # "chunk2" + "\t" + "5544" + "\t" + "5575" + "\t" + "sbj2" + "\t" + "125457" + "\t" + "133465" + "\t" + "2e-38" + "\t" + "83" + "\t" + "65" + "\n"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
56 # "chunk2" + "\t" + "5540" + "\t" + "5573" + "\t" + "sbj2" + "\t" + "125454" + "\t" +"125750" + "\t" + "8e-58" + "\t" + "224" + "\t" + "86.43" + "\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
57 # _MockAlignFile( file2Process, linesToProcess )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
58 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
59 # convCoord = ConvCoord( file2Process, "q", self._mapFile, self._resultFile, "", 0, self._db )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
60 # convCoord.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
61 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
62 # refLine = ["dmel_chr4" + "\t" + "95535" + "\t" + "95575" + "\t" + "sbj2" + "\t" + "125423" + "\t" + "133465" + "\t" + "8e-58" + "\t" + "224" + "\t" + "97.78" + "\n"]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
63 # _MockAlignFile( self._refFileToCompare, refLine )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
64 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
65 # self.assertTrue( FileUtils.are2FilesIdentical( self._refFileToCompare, self._resultFile ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
66 # os.remove( file2Process )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
67 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
68 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
69 # def test_run_HitsOnDifferentStrandsAndDifferentSubjects( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
70 # file2Process = "hits_on_different_strands_and_different_subjects.align"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
71 # linesToProcess = [ "chunk1" + "\t" + "95535" + "\t" + "95570" + "\t" + "sbj2" + "\t" + "125423" + "\t" + "125467" + "\t" + "7e-15" + "\t" + "82" + "\t" + "97.78" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
72 # "chunk2" + "\t" + "5575" + "\t" + "5544" + "\t" + "sbj2" + "\t" + "125457" + "\t" + "133465" + "\t" + "2e-38" + "\t" + "83" + "\t" + "65" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
73 # "chunk2" + "\t" + "5540" + "\t" + "5573" + "\t" + "sbj3" + "\t" + "125454" + "\t" +"125750" + "\t" + "8e-58" + "\t" + "224" + "\t" + "86.43" + "\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
74 # _MockAlignFile( file2Process, linesToProcess )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
75 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
76 # convCoord = ConvCoord( file2Process, "q", self._mapFile, self._resultFile, "", 0, self._db )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
77 # convCoord.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
78 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
79 # refLine = ["dmel_chr4" + "\t" + "95535" + "\t" + "95570" + "\t" + "sbj2" + "\t" + "125423" + "\t" + "125467" + "\t" + "7e-15" + "\t" + "82" + "\t" + "97.78" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
80 # "dmel_chr4" + "\t" + "95544" + "\t" + "95575" + "\t" + "sbj2" + "\t" + "133465" + "\t" + "125457" + "\t" + "2e-38" + "\t" + "83" + "\t" + "65" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
81 # "dmel_chr4" + "\t" + "95540" + "\t" + "95573" + "\t" + "sbj3" + "\t" + "125454" + "\t" +"125750" + "\t" + "8e-58" + "\t" + "224" + "\t" + "86.43" + "\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
82 # _MockAlignFile( self._refFileToCompare, refLine )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
83 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
84 # self.assertTrue( FileUtils.are2FilesIdentical( self._refFileToCompare, self._resultFile ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
85 # os.remove( file2Process )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
86 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
87 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
88 # def test_run_TwoHitsOnChunksOnlyAndOnOverlap( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
89 # file2Process = "two_hits_on_chunks_only_and_on_overlap.align"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
90 # linesToProcess = [ "chunk2" + "\t" + "85000" + "\t" + "95000" + "\t" + "sbj2" + "\t" + "125457" + "\t" + "133465" + "\t" + "2e-38" + "\t" + "83" + "\t" + "65" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
91 # "chunk3" + "\t" + "1000" + "\t" +" 5000" + "\t" + "sbj2" + "\t" + "125454" + "\t" + "125750" + "\t" + "8e-58" + "\t" + "224" + "\t" + "86.43" + "\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
92 # _MockAlignFile( file2Process, linesToProcess )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
93 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
94 # convCoord = ConvCoord( file2Process, "q", self._mapFile, self._resultFile, "", 0, self._db )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
95 # convCoord.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
96 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
97 # refLine = ["dmel_chr4" + "\t" + "175000"+ "\t" + "185000"+ "\t" + "sbj2"+ "\t" + "125454"+ "\t" + "133465"+ "\t" + "8e-58"+ "\t" + "224"+ "\t" + "86.43"+"\n"]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
98 # _MockAlignFile( self._refFileToCompare, refLine )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
99 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
100 # self.assertTrue( FileUtils.are2FilesIdentical( self._refFileToCompare, self._resultFile ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
101 # os.remove( file2Process )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
102 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
103 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
104 # def test_run_TwoHitsOnChunks_And_OnOverlap_OnReverseStrand_ForSubject( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
105 # file2Process = "two_hits_on_chunks_and_on_overlap_on_reverse_strand_for_subject.align"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
106 # linesToProcess = [ "chunk2" + "\t" + "85000" + "\t" + "95000" + "\t" + "sbj2" + "\t" + "133465" + "\t" + "125457" + "\t" + "2e-38" + "\t" + "83" + "\t" + "65" + "\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
107 # "chunk3" + "\t" + "1000" + "\t" + "5000" + "\t" + "sbj2" + "\t" + "125750" + "\t" + "125454" + "\t" + "8e-58" + "\t" + "224" + "\t" + "86.43" + "\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
108 # _MockAlignFile( file2Process, linesToProcess )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
109 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
110 # convCoord = ConvCoord( file2Process, "q", self._mapFile, self._resultFile, "", 0, self._db )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
111 # convCoord.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
112 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
113 # refLine = ["dmel_chr4" + "\t" + "175000"+ "\t" + "185000" + "\t" + "sbj2"+ "\t" + "133465" + "\t" + "125454" + "\t" + "8e-58"+ "\t" + "224"+ "\t" + "86.43"+"\n"]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
114 # _MockAlignFile( self._refFileToCompare, refLine )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
115 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
116 # self.assertTrue( FileUtils.are2FilesIdentical( self._refFileToCompare, self._resultFile ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
117 # os.remove( file2Process )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
118 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
119 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
120 # def test_run_ThreeHitsAllByAllWithTwoHitsWithinAChunkOverlap( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
121 # file2Process = "dummyAlignFile_%s" % ( self._uniqId )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
122 # linesToProcess = [ "chunk1"+"\t"+"192"+"\t"+"197"+"\t"+"chunk2"+"\t"+"2"+"\t"+"7"+"\t"+"8e-58"+"\t"+"11"+"\t"+"97.8"+"\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
123 # "chunk1"+"\t"+"192"+"\t"+"197"+"\t"+"chunk2"+"\t"+"51"+"\t"+"56"+"\t"+"8e-58"+"\t"+"11"+"\t"+"97.8"+"\n",
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
124 # "chunk2"+"\t"+"2"+"\t"+"7"+"\t"+"chunk2"+"\t"+"51"+"\t"+"56"+"\t"+"8e-58"+"\t"+"11"+"\t"+"97.8"+"\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
125 # _MockAlignFile( file2Process, linesToProcess )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
126 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
127 # mapFileName = "dummyMapFile_%s" % ( self._uniqId )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
128 # mapF = open( mapFileName, "w" )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
129 # mapF.write( "chunk1\tdmel_chr4\t1\t200\n" )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
130 # mapF.write( "chunk2\tdmel_chr4\t191\t390\n" )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
131 # mapF.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
132 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
133 # convCoord = ConvCoord( file2Process, "qs", mapFileName, self._resultFile, "", 0, self._db )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
134 # convCoord.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
135 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
136 # refLine = [ "dmel_chr4"+"\t"+"192"+"\t"+"197"+"\t"+"dmel_chr4"+"\t"+"241"+"\t"+"246"+"\t"+"8e-58"+"\t"+"11"+"\t"+"97.8"+"\n" ]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
137 # _MockAlignFile( self._refFileToCompare, refLine )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
138 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
139 # self.assertTrue( FileUtils.are2FilesIdentical( self._refFileToCompare, self._resultFile ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
140 # os.remove( file2Process )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
141 # os.remove( mapFileName )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
142 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
143 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
144 #class _MockAlignFile:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
145 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
146 # def __init__(self, fileName, lines):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
147 # alignF = open(fileName, "w");
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
148 # for line in lines:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
149 # alignF.write(line)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
150 # alignF.close
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
151 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
152 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
153 #class _MockMapFile:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
154 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
155 # def __init__ (self, fileName):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
156 # mapF = open(fileName, "w")
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
157 # line1 = "chunk1" + '\t' + "dmel_chr4" + '\t' + "1" + '\t'+ "100000" + "\n"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
158 # line2 = "chunk2" + '\t' + "dmel_chr4" + '\t' + "90001" + '\t'+ "190000" + "\n"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
159 # line3 = "chunk3" + '\t' + "dmel_chr4" + '\t' + "180001" + '\t' + "280000" + "\n"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
160 # mapF.write(line1)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
161 # mapF.write(line2)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
162 # mapF.write(line3)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
163 # mapF.close
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
164
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
165
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
166 test_suite = unittest.TestSuite()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
167 test_suite.addTest( unittest.makeSuite( Test_ConvCoordWithOverlaps ) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
168 if __name__ == "__main__":
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
169 unittest.TextTestRunner(verbosity=2).run( test_suite )