1 |
filippis |
42 |
import java.sql.*; |
2 |
|
|
import java.io.*; |
3 |
|
|
import tools.*; |
4 |
|
|
|
5 |
|
|
public class testGraph2Pml { |
6 |
|
|
|
7 |
|
|
public static void main(String[] args) { |
8 |
|
|
|
9 |
|
|
String connFile = "/project/StruPPi/ioannis/cnfs/msdgraph.my.cnf"; |
10 |
|
|
|
11 |
|
|
mySQLConnect SQLC = new mySQLConnect(); |
12 |
|
|
SQLC.readConnectionFile(connFile); |
13 |
|
|
Connection conn = SQLC.openConnection(); |
14 |
|
|
|
15 |
|
|
PrintWriter serverOutPw = new PrintWriter(new PymolServerOutputStream("http://blau:9123"), true); |
16 |
|
|
PyMol pml = new PyMol(serverOutPw); |
17 |
|
|
|
18 |
|
|
String pdbFileName = Msdsd2Pdb.export2File("1rx4", 20717, 52567, 9, "/project/StruPPi/ioannis/tmp"); |
19 |
|
|
String molObjName = pml.loadPDB(pdbFileName, "/project/StruPPi/ioannis/tmp"); |
20 |
|
|
System.out.println(molObjName); |
21 |
|
|
|
22 |
|
|
Graph2Pml graphPml = new Graph2Pml(serverOutPw, molObjName, 33729, "SC_SC", "SC_SC_in+SC_SC_out", "SC_SC", "true", "true", true, false, false, conn); |
23 |
|
|
graphPml.exportPML(); |
24 |
|
|
|
25 |
|
|
SQLC.closeConnection(conn); |
26 |
|
|
|
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
} // end of class Graph2Pml |