Changeset 300


Ignore:
Timestamp:
May 24, 2007, 3:57:07 PM (16 years ago)
Author:
Peter Johansson
Message:

Result from plier is now logarithmized prior imported to BASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/thep/affymetrix/Plier.java

    r296 r300  
    7272
    7373import java.io.IOException;
     74
     75import java.lang.Double;
     76import java.lang.Float;
     77import java.lang.Math;
    7478
    7579import java.util.ArrayList;
     
    406410      while (ffp.hasMoreData()) {
    407411        FlatFileParser.Data data = ffp.nextData();
    408         for (Map.Entry<Integer,Short> entry : cubecolumn.entrySet())
    409           sbatcher.insert(entry.getValue().shortValue(), position,
    410                           Float.parseFloat(data.get(entry.getKey())));
     412        for (Map.Entry<Integer,Short> entry : cubecolumn.entrySet()){
     413          Double x =
     414            new Double(Math.log(Double.parseDouble(data.get(entry.getKey()))));
     415          sbatcher.insert(entry.getValue().shortValue(), position,
     416                          x.floatValue());
     417        }
    411418        // The reporter id is assumed to be the first column
    412419        pbatcher.insert(position,rbatcher.getByExternalId(data.get(0)));
     
    435442     "Department of Theoretical Physics, Lund University",
    436443     null, null,
    437      "http://baseplugins.thep.lu.se/wiki/se.lu.thep.affymetrix.Plier" );
     444     "http://baseplugins.thep.lu.se/wiki/se.lu.thep.affymetrix" );
    438445  private RequestInformation configureJob = null;
    439446  private RequestInformation configurePlugin = null;
Note: See TracChangeset for help on using the changeset viewer.