ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/test.py
Revision: 7
Committed: Fri Apr 9 17:11:42 2010 UTC (9 years, 1 month ago) by clausted
File size: 525 byte(s)
Log Message:
Initial addition of ba_class, an alternative to SPRdataclass.  This class, ba or Biosensor Array, has one internal structure rather than different internal structures depending on whether SPRit or Biacore or other data was imported.  This makes the code smaller and more readable.  It provides default values, usually 0 or null text, that make it easier to import and export different file formats.  We also add io_module to provide import and export features.  We also add test.py as a convenience for testing and demonstration.
Line File contents
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 io_module as io
8 reload(io)
9
10 ba1 = io.readsprit("example-sprit.txt")
11 #ba1.set_plot_all()
12 #ba1.plot()
13
14 #io.writesprit(ba1,"testwritesprit.txt")
15 #io.writeclamp(ba1,"testwriteclamp.txt")
16
17 ba2 = io.applykey(ba1, "example-key.tsv")
18 #ba2.set_plot_all()
19 #ba2.plot()
20
21 ba3 = io.readicmtxt("example-icm.txt")
22 ba3.set_plot_all()
23 ba3.plot()
24
25 print "Done with test."