annotate SMART/Java/Python/ncList/test/MockFindOverlapsWithSeveralIntervals.py @ 9:1eb55963fe39

Updated CompareOverlappingSmall*.py
author m-zytnicki
date Thu, 14 Mar 2013 05:23:05 -0400
parents 769e306b7933
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
1 from SMART.Java.Python.misc import Utils
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
2
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
3 class MockFindOverlapsWithOneInterval (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
4 def write(self, inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
5 Utils.writeFile(inFileName, "chr1\ttest\ttest1.1\t0\t1000\t.\t+\t.\tID=test1.1;Name=test1.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
7 class MockFindOverlapsWithServeralIntervals_case1 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
8 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
9 f = open(inFileName, "w")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
10 f.write("chr1\ttest\ttest1.1\t0\t1000\t1001\t+\t.\tID=test1.1;Name=test1.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
11 f.write("chr1\ttest\ttest1.2\t50\t350\t301\t+\t.\tID=test1.2;Name=test1.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
12 f.write("chr1\ttest\ttest1.3\t100\t600\t501\t+\t.\tID=test1.3;Name=test1.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
13 f.write("chr1\ttest\ttest1.4\t200\t450\t251\t+\t.\tID=test1.4;Name=test1.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
14 f.write("chr1\ttest\ttest1.5\t700\t950\t251\t+\t.\tID=test1.5;Name=test1.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
15 f.write("chr1\ttest\ttest1.6\t800\t900\t101\t+\t.\tID=test1.6;Name=test1.6\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
16 f.write("chr1\ttest\ttest1.7\t1200\t1300\t101\t+\t.\tID=test1.7;Name=test1.7\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
17 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
18
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
19 class MockFindOverlapsWithServeralIntervals_case2 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
20 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
21 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
22 f.write("chr1\ttest\ttest2.1\t0\t500\t501\t+\t.\tID=test2.1;Name=test2.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
23 f.write("chr1\ttest\ttest2.2\t50\t450\t401\t+\t.\tID=test2.2;Name=test2.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
24 f.write("chr1\ttest\ttest2.3\t100\t400\t301\t+\t.\tID=test2.3;Name=test2.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
25 f.write("chr1\ttest\ttest2.4\t100\t200\t101\t+\t.\tID=test2.4;Name=test2.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
26 f.write("chr1\ttest\ttest2.5\t900\t1200\t301\t+\t.\tID=test2.5;Name=test2.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
27 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
28
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
29 class MockFindOverlapsWithServeralIntervals_case3 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
30 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
31 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
32 f.write("chr1\ttest\ttest3.1\t0\t500\t501\t+\t.\tID=test3.1;Name=test3.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
33 f.write("chr1\ttest\ttest3.2\t50\t450\t401\t+\t.\tID=test3.2;Name=test3.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
34 f.write("chr1\ttest\ttest3.3\t100\t400\t301\t+\t.\tID=test3.3;Name=test3.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
35 f.write("chr1\ttest\ttest3.4\t100\t200\t101\t+\t.\tID=test3.4;Name=test3.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
36 f.write("chr1\ttest\ttest3.5\t300\t400\t101\t+\t.\tID=test3.5;Name=test3.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
37 f.write("chr1\ttest\ttest3.6\t800\t1000\t201\t+\t.\tID=test3.6;Name=test3.6\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
38 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
39
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
40 class MockFindOverlapsWithServeralIntervals_case4_5 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
41 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
42 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
43 f.write("chr1\ttest\ttest4.1\t0\t1000\t1001\t+\t.\tID=test4.1;Name=test4.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
44 f.write("chr1\ttest\ttest4.2\t200\t800\t601\t+\t.\tID=test4.2;Name=test4.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
45 f.write("chr1\ttest\ttest4.3\t400\t600\t201\t+\t.\tID=test4.3;Name=test4.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
46 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
47
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
48 class MockFindOverlapsWithServeralIntervals_case6_7 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
49 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
50 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
51 f.write("chr1\ttest\ttest6.1\t0\t1000\t1001\t+\t.\tID=test6.1;Name=test6.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
52 f.write("chr1\ttest\ttest6.2\t100\t300\t201\t+\t.\tID=test6.2;Name=test6.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
53 f.write("chr1\ttest\ttest6.3\t400\t500\t101\t+\t.\tID=test6.3;Name=test6.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
54 f.write("chr1\ttest\ttest6.4\t510\t520\t11\t+\t.\tID=test6.4;Name=test6.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
55 f.write("chr1\ttest\ttest6.5\t850\t950\t001\t+\t.\tID=test6.5;Name=test6.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
56 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
57
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
58 class MockFindOverlapsWithServeralIntervals_case8 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
59 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
60 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
61 f.write("chr1\ttest\ttest8.1\t0\t1000\t1001\t+\t.\tID=test8.1;Name=test8.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
62 f.write("chr1\ttest\ttest8.2\t100\t200\t101\t+\t.\tID=test8.2;Name=test8.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
63 f.write("chr1\ttest\ttest8.3\t300\t400\t101\t+\t.\tID=test8.3;Name=test8.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
64 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
65
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
66 class MockFindOverlapsWithServeralIntervals_case9 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
67 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
68 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
69 f.write("chr1\ttest\ttest9.1\t0\t1000\t1001\t+\t.\tID=test9.1;Name=test9.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
70 f.write("chr1\ttest\ttest9.2\t600\t700\t101\t+\t.\tID=test9.2;Name=test9.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
71 f.write("chr1\ttest\ttest9.3\t800\t1200\t401\t+\t.\tID=test9.3;Name=test9.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
72 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
73
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
74 class MockFindOverlapsWithServeralIntervals_case10 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
75 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
76 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
77 f.write("chr1\ttest\ttest10.1\t0\t1000\t1001\t+\t.\tID=test10.1;Name=test10.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
78 f.write("chr1\ttest\ttest10.2\t100\t200\t101\t+\t.\tID=test10.2;Name=test10.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
79 f.write("chr1\ttest\ttest10.3\t300\t400\t101\t+\t.\tID=test10.3;Name=test10.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
80 f.write("chr1\ttest\ttest10.4\t500\t600\t101\t+\t.\tID=test10.4;Name=test10.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
81 f.write("chr1\ttest\ttest10.5\t1200\t1300\t101\t+\t.\tID=test10.5;Name=test10.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
82 f.write("chr1\ttest\ttest10.6\t1400\t1500\t101\t+\t.\tID=test10.6;Name=test10.6\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
83 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
84
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
85 class MockFindOverlapsWithServeralIntervals_case11 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
86 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
87 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
88 f.write("chr1\ttest\ttest11.1\t0\t500\t501\t+\t.\tID=test11.1;Name=test11.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
89 f.write("chr1\ttest\ttest11.2\t100\t200\t101\t+\t.\tID=test11.2;Name=test11.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
90 f.write("chr1\ttest\ttest11.3\t300\t400\t101\t+\t.\tID=test11.3;Name=test11.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
91 f.write("chr1\ttest\ttest11.4\t700\t900\t201\t+\t.\tID=test11.4;Name=test11.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
92 f.write("chr1\ttest\ttest11.5\t710\t720\t11\t+\t.\tID=test11.5;Name=test11.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
93 f.write("chr1\ttest\ttest11.6\t740\t750\t11\t+\t.\tID=test11.6;Name=test11.6\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
94 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
95
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
96 class MockFindOverlapsWithServeralIntervals_case12 (object) :
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
97 def write(self,inFileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
98 f = open(inFileName,'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
99 f.write("chr1\ttest\ttest12.1\t0\t1400\t.\t+\t.\tID=test12.1;Name=test12.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
100 f.write("chr1\ttest\ttest12.2\t300\t500\t.\t+\t.\tID=test12.2;Name=test12.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
101 f.write("chr1\ttest\ttest12.3\t300\t500\t.\t+\t.\tID=test12.3;Name=test12.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
102 f.write("chr1\ttest\ttest12.4\t800\t1100\t.\t+\t.\tID=test12.4;Name=test12.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
103 f.write("chr1\ttest\ttest12.5\t1200\t1300\t.\t+\t.\tID=test12.5;Name=test12.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
104 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
105
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
106 class MockFindOverlapsWithServeralIntervals_query_case1 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
107 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
108 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
109 f.write("chr1\tquery\tquery1.1\t25\t150\t126\t+\t.\tID=query_1;Name=query1.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
110 f.write("chr1\tquery\tquery1.2\t70\t850\t781\t+\t.\tID=query_2;Name=query1.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
111 f.write("chr1\tquery\tquery1.3\t550\t850\t201\t+\t.\tID=query_3;Name=query1.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
112 f.write("chr1\tquery\tquery1.4\t925\t1025\t101\t+\t.\tID=query_4;Name=query1.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
113 f.write("chr1\tquery\tquery1.5\t1201\t1210\t10\t+\t.\tID=query_5;Name=query1.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
114 f.write("chr1\tquery\tquery1.6\t1500\t1600\t101\t+\t.\tID=query_6;Name=query1.6\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
115 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
116
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
117 class MockFindOverlapsWithServeralIntervals_query_case2 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
118 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
119 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
120 f.write("chr1\tquery\tquery2.1\t150\t300\t151\t+\t.\tID=query_1;Name=query2.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
121 f.write("chr1\tquery\tquery2.2\t300\t450\t151\t+\t.\tID=query_2;Name=query2.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
122 f.write("chr1\tquery\tquery2.3\t480\t800\t321\t+\t.\tID=query_3;Name=query2.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
123 f.write("chr1\tquery\tquery2.4\t560\t800\t241\t+\t.\tID=query_4;Name=query2.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
124 f.write("chr1\tquery\tquery2.5\t850\t1000\t151\t+\t.\tID=query_5;Name=query2.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
125 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
126
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
127 class MockFindOverlapsWithServeralIntervals_query_case3 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
128 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
129 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
130 f.write("chr1\tquery\tquery3.1\t150\t250\t101\t+\t.\tID=query_1;Name=query3.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
131 f.write("chr1\tquery\tquery3.2\t380\t400\t21\t+\t.\tID=query_2;Name=query3.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
132 f.write("chr1\tquery\tquery3.3\t480\t520\t41\t+\t.\tID=query_3;Name=query3.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
133 f.write("chr1\tquery\tquery3.4\t510\t700\t191\t+\t.\tID=query_4;Name=query3.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
134 f.write("chr1\tquery\tquery3.5\t900\t950\t41\t+\t.\tID=query_5;Name=query3.5\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
135 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
136
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
137 class MockFindOverlapsWithServeralIntervals_query_case4 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
138 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
139 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
140 f.write("chr1\tquery\tquery4.1\t400\t500\t101\t+\t.\tID=query_1;Name=query4.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
141 f.write("chr1\tquery\tquery4.2\t450\t600\t151\t+\t.\tID=query_2;Name=query4.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
142 f.write("chr1\tquery\tquery4.3\t700\t800\t101\t+\t.\tID=query_3;Name=query4.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
143 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
144
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
145 class MockFindOverlapsWithServeralIntervals_query_case5 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
146 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
147 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
148 f.write("chr1\tquery\tquery5.1\t850\t950\t101\t+\t.\tID=query_1;Name=query5.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
149 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
150
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
151 class MockFindOverlapsWithServeralIntervals_query_case6 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
152 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
153 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
154 f.write("chr1\tquery\tquery6.1\t200\t300\t101\t+\t.\tID=query_1;Name=query6.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
155 f.write("chr1\tquery\tquery6.2\t800\t900\t101\t+\t.\tID=query_2;Name=query6.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
156 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
157
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
158 class MockFindOverlapsWithServeralIntervals_query_case7 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
159 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
160 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
161 f.write("chr1\tquery\tquery6.1\t530\t550\t21\t+\t.\tID=query_1;Name=query6.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
162 f.write("chr1\tquery\tquery6.2\t600\t700\t101\t+\t.\tID=query_2;Name=query6.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
163 f.write("chr1\tquery\tquery6.3\t650\t900\t251\t+\t.\tID=query_3;Name=query6.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
164 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
165
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
166 class MockFindOverlapsWithServeralIntervals_query_case8 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
167 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
168 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
169 f.write("chr1\tquery\tquery7.1\t500\t600\t101\t+\t.\tID=query_1;Name=query7.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
170 f.write("chr1\tquery\tquery7.2\t700\t800\t101\t+\t.\tID=query_2;Name=query7.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
171 f.write("chr1\tquery\tquery7.3\t900\t1100\t201\t+\t.\tID=query_3;Name=query7.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
172 f.write("chr1\tquery\tquery7.4\t1200\t1300\t101\t+\t.\tID=query_4;Name=query7.4\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
173 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
174
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
175 class MockFindOverlapsWithServeralIntervals_query_case9 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
176 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
177 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
178 f.write("chr1\tquery\tquery8.1\t400\t400\t101\t+\t.\tID=query_1;Name=query8.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
179 f.write("chr1\tquery\tquery8.2\t550\t650\t101\t+\t.\tID=query_2;Name=query8.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
180 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
181
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
182 class MockFindOverlapsWithServeralIntervals_query_case10 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
183 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
184 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
185 f.write("chr1\tquery\tquery10.1\t700\t800\t101\t+\t.\tID=query_1;Name=query10.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
186 f.write("chr1\tquery\tquery10.2\t900\t1000\t101\t+\t.\tID=query_2;Name=query10.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
187 f.write("chr1\tquery\tquery10.3\t1100\t1300\t201\t+\t.\tID=query_3;Name=query10.3\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
188 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
189
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
190 class MockFindOverlapsWithServeralIntervals_query_case11 (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
191 def write(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
192 f = open(fileName, 'w')
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
193 f.write("chr1\tquery\tquery11.1\t420\t480\t61\t+\t.\tID=query_1;Name=query11.1\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
194 f.write("chr1\tquery\tquery11.2\t450\t715\t266\t+\t.\tID=query_2;Name=query11.2\n")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
195 f.close()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
196
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
197