Changeset 1000


Ignore:
Timestamp:
Mar 27, 2009, 3:37:12 PM (12 years ago)
Author:
Jari Häkkinen
Message:

storeResult interface change, some code moved to super class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.normalizers/trunk/src/net/sf/basedb/plugins/qQuantileNormalization.java

    r998 r1000  
    202202
    203203
    204   protected void storeResult(DbControl dc, String name)
     204  protected void storeResult(SpotBatcher batcher)
     205    throws BaseException
    205206  {
    206     // I (Jari) don't like this method. A lot of thing should be moved
    207     // to the abstract super class.
    208207    if (debug_output) System.err.println("qQN: Storing new bioassayset");
    209208    try
    210209    {
    211       // Create Transformation
    212       Transformation t = sourceBAS.newTransformation(this.getCurrentJob(dc));
    213       t.setName(about.getName());
    214       dc.saveItem(t);
    215 
    216       // Create the normalized bioassay set
    217       BioAssaySet child = t.newProduct(null, "new", true);
    218       child.setName(Values.getString((String)job.getValue(CHILD_NAME),
    219                                      sourceBAS.getName()));
    220       child.setDescription((String)job.getValue(CHILD_DESCRIPTION));
    221       dc.saveItem(child);
    222 
    223       // Batcher for inserting normalized data
    224       SpotBatcher batcher = child.getSpotBatcher();
    225 
    226210      BufferedReader metainput =
    227211        new BufferedReader(new FileReader(getExecDirectory() +
Note: See TracChangeset for help on using the changeset viewer.