annotate commons/launcher/tests/Test_F_LaunchMummerPlot.py @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
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 from commons.core.utils.FileUtils import FileUtils
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4 from commons.launcher.LaunchMummerPlot import LaunchMummerPlot
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6 class Test_F_LaunchMummerPlot(unittest.TestCase):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 def setUp(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9 self._queryFastaFileName = "query.fa"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10 self._refFastaFileName = "ref.fa"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 self._writeInputFastaFiles()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13 self._inputDeltaFileName = "inputNucmer.delta"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 self._writeInputDeltaFileName()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
15
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
16 self._expGpFileName = "expMummerPlot.gp"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
17 self._obsGpFileName = "obsMummerPlot.gp"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
18 self._obsPngFileName = "obsMummerPlot.png"
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
19
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
20 def tearDown(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
21 try:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
22 os.remove(self._queryFastaFileName)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
23 except:pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
24 try:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
25 os.remove(self._refFastaFileName)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
26 except:pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
27 try:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
28 os.remove(self._inputDeltaFileName)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
29 except:pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
30 try:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
31 os.remove(self._expGpFileName)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
32 except:pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
33 try:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
34 os.remove(self._obsGpFileName)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
35 except:pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
36 try:
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
37 os.remove(self._obsPngFileName)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
38 except:pass
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
39
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
40
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
41 def test_run(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
42 self._writeExpGpFile()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
43 ilaunchMummerPlot = LaunchMummerPlot(self._inputDeltaFileName, self._refFastaFileName, self._queryFastaFileName,"obsMummerPlot",fat=True, filter=True, clean=True, verbosity=1)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
44 ilaunchMummerPlot.run()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
45 self.assertTrue(FileUtils.are2FilesIdentical(self._expGpFileName, self._obsGpFileName))
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
46
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
47 def test_run_as_script(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
48 self._writeExpGpFile()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
49 cmd = 'LaunchMummerPlot.py --input %s --Qfile %s --Rfile %s --prefix %s --fat --filter --clean' % (self._inputDeltaFileName, self._refFastaFileName, self._queryFastaFileName, "obsMummerPlot")
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
50 os.system(cmd)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
51 self.assertTrue(FileUtils.are2FilesIdentical(self._expGpFileName, self._obsGpFileName))
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
52
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
53 def _writeInputFastaFiles(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
54 InputFile = open(self._queryFastaFileName, 'w')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
55 InputFile.write('>Bovc-tA2:classI:SINE:SINE2/tRNA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
56 InputFile.write('GGGCTTCCCTGGTAGCTCAGCTGGTAAAGAATCCGCCTGCAATGCAGGAGACCCCGGTTC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
57 InputFile.write('GATTCCTGGGTCGGGAAGATCCCCTGGAGAAGGGATAGGCTACCCACTCCAGTATTCTTG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
58 InputFile.write('GGCTTCCCTGGTGGCTCAGACGGTAAAGAATCCGCCTGCAATGCGGGAGACCTGGGTTCG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
59 InputFile.write('ATCCCTGGGTTGGGAAGATCCCCTGGAGGAGGGCATGGCAACCCACTCCAGTATTCTTGC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
60 InputFile.write('CTGGAGAATCCCCATGGACAGAGGAGCCTGGCGGGCTACAGTCCATGGGGTCGCAAAGAG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
61 InputFile.write('TCGGACACGACTGAGCGACTAAGCACAGCACAG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
62 InputFile.write('>SUSINE2:classI:SINE:SINE2/tRNA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
63 InputFile.write('GGGAGTTCTCTGATGGCCTAGCGGGTTGAGGCTCCTGCGTTCTCACCGCTGTGGCTCTGG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
64 InputFile.write('TTGCTGCTGTGCGGCGTAGGTTCAATCCCTGGCCCAGGAATTCCCACATACTGCCTGTGT\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
65 InputFile.write('GGCAAAAAAGAAAAAAAAAAAAAATACAAAAAAAAAAAAAACAAGAGAGAACCTGAAATA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
66 InputFile.write('AACGTTGCAACTCTCATTNAAAAAAAAAAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
67 InputFile.write('>SINE1A_SS:classI:SINE:SINE2/tRNA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
68 InputFile.write('GGGAGTTCTCTTGTGGCACAGCAGGTTAAGGATCCAGCGTTGTCACTGCAGTGGCTTGGG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
69 InputFile.write('TCGCTGCTGTGGCACGGGTTCAATCCCTGGCCCAGGAACTTCCACATGCCACGGGCATGG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
70 InputFile.write('CCAAAAAAAAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
71 InputFile.write('>SINE2-1_Pca:classI:SINE:SINE2/tRNA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
72 InputFile.write('GGGCAGTGGTGGTTCAGTGGTAGAATTCTTGCCTTCCATGCGGGAGACCCGGGTTCGATT\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
73 InputFile.write('CCCGGCCAGTGCACCTCATGCGCAGCCACCACCCGTCTGTCAGTGGAGGCTTGCGTGTTG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
74 InputFile.write('CTGTGATGCTGAACAGGTTTCAGCGGAGCTTCCAGACTAAGACGGACTAGGAAGAAAGGC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
75 InputFile.write('CTGGCGATCTACTTCTGAAAATCAGCCAATGAAAACCCTGTGGATCACAGTGGTCTGATC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
76 InputFile.write('TGCAACTGATCATGGGGATGGCGCAGGACCGGGCAGCGTTTTGTTCTATTGTGCATGGGG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
77 InputFile.write('TCGCCATGAGTCGGGCCGACTCGATGGCAGCTAACAACAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
78 InputFile.write('>SINE_FR2:classI:SINE:?\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
79 InputFile.write('GGGCGGCACGGTGGTGTGGTGGTTAGCACTGTTGCCTCACAGCAAGAAGGCCCCGGGTTC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
80 InputFile.write('GATCCCCGGTTGGGACTGAGGCTGGGGACTTTCTGTGTGGAGTTTGCATGTTCTCCCTGT\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
81 InputFile.write('GCCTGCGTGGGTTCTCTCCGGGTACTCCGGCTTCCTCCCACAGTCCAAAGACATGCATGA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
82 InputFile.write('TTGGGGATTAGGCTAATTGGAAACTCTAAAATTGCCCGTAGGTGTGAGTGTGAGAGAGAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
83 InputFile.write('TGGTTGTTTGTCTATATGTGTTAGCCCTGCGATTGACTGGCGTCCAGTCCAGGGTGTACC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
84 InputFile.write('CTGCCTCCGCCCATTGTGCTGGGATAGGCTCCAGTCCCCCCGCGACCCTCAGTGGAGGAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
85 InputFile.write('CAAGCGGTAGAAAGTGAGTGAGTGAGTGA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
86 InputFile.write('>SINEC1B2_CF:classI:SINE:?\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
87 InputFile.write('GGGCAGCCTGGGTGGCTCAGCGGTTTAGCGCCTGCCTTTGGCCCAGGGCGTGATCCTGGA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
88 InputFile.write('GACCCGGGATCGAGTCCCACATCGGGCTCCCTGCATGGAGCCTGCTTCTCCCTCTGCCTG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
89 InputFile.write('TGTCTCTGCCTCTCTCTCTCTCTGTGTCTCTCATGAATAAATAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
90 InputFile.write('>ALPINE1:classI:SINE:SINE2/tRNA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
91 InputFile.write('GGGGAGGGTATAGCTCAGTGGTAGAGCGCATGCTTAGCATGCACGAGGTCCTGGGTTCAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
92 InputFile.write('TCCCCAGTACCTCCATTAAAAATAAATAAATAAATAAACCTAATTACCTCCCCCACCAAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
93 InputFile.write('AAAAAAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
94 InputFile.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
95
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
96 InputFile = open(self._refFastaFileName, 'w')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
97 InputFile.write('>SINE_FR2:classI:SINE:?\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
98 InputFile.write('GGGCGGCACGGTGGTGTGGTGGTTAGCACTGTTGCCTCACAGCAAGAAGGCCCCGGGTTC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
99 InputFile.write('GATCCCCGGTTGGGACTGAGGCTGGGGACTTTCTGTGTGGAGTTTGCATGTTCTCCCTGT\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
100 InputFile.write('GCCTGCGTGGGTTCTCTCCGGGTACTCCGGCTTCCTCCCACAGTCCAAAGACATGCATGA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
101 InputFile.write('TTGGGGATTAGGCTAATTGGAAACTCTAAAATTGCCCGTAGGTGTGAGTGTGAGAGAGAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
102 InputFile.write('TGGTTGTTTGTCTATATGTGTTAGCCCTGCGATTGACTGGCGTCCAGTCCAGGGTGTACC\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
103 InputFile.write('CTGCCTCCGCCCATTGTGCTGGGATAGGCTCCAGTCCCCCCG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
104 InputFile.write('CAAGCGGTAGAAAGTGAGTGAGTGAGTGA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
105 InputFile.write('>SINEC1B2_CF:classI:SINE:?\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
106 InputFile.write('GGGCAGCCTGGGTGGCTCAGCGGTTTAGCGCCTGCCTTTGGCCCAGGGCGTGATCCTGGA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
107 InputFile.write('GACCCGGGATCGAGTCCCACATCGGGCTCCCTGCATGGAGCCTGCTTCTCCCTCTGCCTG\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
108 InputFile.write('TGTCTCTGCCTCTCTCTCTCTCTGTGTCTCTCATGAATAAA\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
109 InputFile.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
110
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
111 def _writeExpGpFile(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
112 f = open(self._expGpFileName, 'w')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
113 f.write('set terminal png tiny size 800,800\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
114 f.write('set output "obsMummerPlot.png"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
115 f.write('set xtics rotate ( \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
116 f.write(' "SINE_FR2:classI:SINE:?" 1, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
117 f.write(' "SINEC1B2_CF:classI:SINE:?" 389, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
118 f.write(' "SINE1A_SS:classI:SINE:SINE2/tRNA" 552, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
119 f.write(' "SUSINE2:classI:SINE:SINE2/tRNA" 682, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
120 f.write(' "Bovc-tA2:classI:SINE:SINE2/tRNA" 891, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
121 f.write(' "ALPINE1:classI:SINE:SINE2/tRNA" 1223, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
122 f.write(' "SINE2-1_Pca:classI:SINE:SINE2/tRNA" 1349, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
123 f.write(' "" 1694 \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
124 f.write(')\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
125 f.write('set ytics ( \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
126 f.write(' "SINE_FR2:classI:SINE:?" 1, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
127 f.write(' "SINEC1B2_CF:classI:SINE:?" 371, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
128 f.write(' "" 532 \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
129 f.write(')\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
130 f.write('set size 1,1\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
131 f.write('set grid\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
132 f.write('unset key\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
133 f.write('set border 0\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
134 f.write('set tics scale 0\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
135 f.write('set xlabel "REF"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
136 f.write('set ylabel "QRY"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
137 f.write('set format "%.0f"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
138 f.write('set mouse format "%.0f"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
139 f.write('set mouse mouseformat "[%.0f, %.0f]"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
140 f.write('set mouse clipboardformat "[%.0f, %.0f]"\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
141 f.write('set xrange [1:1694]\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
142 f.write('set yrange [1:532]\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
143 f.write('set style line 1 lt 1 lw 3 pt 6 ps 1\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
144 f.write('set style line 2 lt 3 lw 3 pt 6 ps 1\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
145 f.write('set style line 3 lt 2 lw 3 pt 6 ps 1\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
146 f.write('plot \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
147 f.write(' "obsMummerPlot.fplot" title "FWD" w lp ls 1, \\\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
148 f.write(' "obsMummerPlot.rplot" title "REV" w lp ls 2\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
149 f.write('')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
150 f.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
151
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
152 def _writeInputDeltaFileName(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
153 f = open(self._inputDeltaFileName, 'w')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
154 f.write("%s %s\n" %(os.path.abspath(self._queryFastaFileName), os.path.abspath(self._refFastaFileName)))
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
155 f.write('NUCMER\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
156 f.write('>SINE_FR2:classI:SINE:? SINE_FR2:classI:SINE:? 389 371\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
157 f.write('1 343 1 343 0 0 0\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
158 f.write('0\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
159 f.write('>SINEC1B2_CF:classI:SINE:? SINEC1B2_CF:classI:SINE:? 164 161\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
160 f.write('1 161 1 161 0 0 0\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
161 f.write('0\n')
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
162 f.close()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
163
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
164 if __name__ == "__main__":
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
165 unittest.main()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
166