ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/testPdb.java
Revision: 125
Committed: Wed May 9 11:58:59 2007 UTC (17 years, 4 months ago) by duarte
File size: 769 byte(s)
Log Message:
Initial commit of testPdb, to test the proteinstructure package
Line User Rev File contents
1 duarte 125 import java.io.IOException;
2    
3     import proteinstructure.Graph;
4     import proteinstructure.Pdb;
5     import proteinstructure.PdbaseAcCodeNotFoundError;
6     import proteinstructure.PdbaseInconsistencyError;
7     public class testPdb {
8    
9     /**
10     * Test class for classes in aglappe.proteinstructure package (Pdb, Graph, AA, Contact)
11     * Loads structure data from db and calculates graph dumping contacts to file
12     */
13    
14     public static void main(String[] args) throws IOException, PdbaseInconsistencyError, PdbaseAcCodeNotFoundError{
15     System.out.println("loading structure");
16     Pdb pdb = new Pdb("1bxy","A");
17     System.out.println("getting graph");
18     Graph graph = pdb.get_graph("Ca", 8.0);
19     System.out.println("dumping contacts to file");
20     graph.write_contacts_to_file("test.txt");
21    
22    
23     }
24    
25     }