Changeset 908


Ignore:
Timestamp:
Dec 8, 2008, 10:30:06 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #50. Running nni with phony weights.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base1/se.lu.thep.wenni/trunk/base/base2/WeNNI.java

    r893 r908  
    3434import net.sf.basedb.core.plugin.Plugin;
    3535
     36import net.sf.basedb.plugins.BioAssaySetExporter;
     37
     38import java.io.File;
     39import java.io.FileOutputStream;
    3640import java.io.IOException;
     41
     42import java.sql.SQLException;
    3743
    3844import java.util.EnumSet;
     
    111117    throws InterruptedException, IOException
    112118  {
    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    }
    115134  }
    116135
Note: See TracChangeset for help on using the changeset viewer.