Changeset 908
- Timestamp:
- Dec 8, 2008, 10:30:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base1/se.lu.thep.wenni/trunk/base/base2/WeNNI.java
r893 r908 34 34 import net.sf.basedb.core.plugin.Plugin; 35 35 36 import net.sf.basedb.plugins.BioAssaySetExporter; 37 38 import java.io.File; 39 import java.io.FileOutputStream; 36 40 import java.io.IOException; 41 42 import java.sql.SQLException; 37 43 38 44 import java.util.EnumSet; … … 111 117 throws InterruptedException, IOException 112 118 { 113 String[] cmd = { "nni", "-h" }; 114 execute(cmd); 119 FileOutputStream os = new FileOutputStream(new File(getExecDirectory(), 120 "data.data")); 121 BioAssaySetExporter base=new BioAssaySetExporter(); 122 try 123 { 124 base.exportPlainMatrix(sourceBAS, os, null); 125 subprocess_stdout="stdout.txt"; 126 String[] cmd = { "nni", "-weight", "data.data" }; 127 execute(cmd); 128 } 129 catch (SQLException e) 130 { 131 e.printStackTrace(); 132 // response.setError(e.getMessage(), Arrays.asList(e)); 133 } 115 134 } 116 135
Note: See TracChangeset
for help on using the changeset viewer.