1 |
"""
|
2 |
Christopher Lausted, Institute for Systems Biology
|
3 |
Last modified on 100408 (yymmdd)
|
4 |
Small script to test ba_class, io_module, etc.
|
5 |
"""
|
6 |
|
7 |
## Import modules.
|
8 |
import vu_module as vu
|
9 |
import io_module as io
|
10 |
import cal_module as cal
|
11 |
## Reload in case code has changed.
|
12 |
reload (vu)
|
13 |
reload(io)
|
14 |
reload(cal)
|
15 |
|
16 |
#ba1 = io.readbiosensor("example-biosensor.txt")
|
17 |
ba1 = io.readicmtxt("example-icm.txt")
|
18 |
#ba1 = io.readsprit("example-sprit.txt")
|
19 |
#ba1 = io.applykey(ba1, "example-key.tsv")
|
20 |
#ba1.set_plot_all()
|
21 |
#ba1.set_plot_list(range(6))
|
22 |
#ba1.plot()
|
23 |
|
24 |
#io.writesprit(ba1,"testwritesprit.txt")
|
25 |
#io.writeclamp(ba1,"testwriteclamp.txt")
|
26 |
#io.writebiosensor(ba1, "testwritebiosensor.txt")
|
27 |
|
28 |
vu.linegraph(ba1)
|
29 |
#vu.dotgraph(ba1)
|
30 |
#vu.dualgraph(ba1, ba1)
|
31 |
|
32 |
ba2 = cal.calibrate(ba1, ba1, 1950, 2025)
|
33 |
vu.linegraph(ba2)
|
34 |
|
35 |
input("Done with test. Press any key")
|