Changeset 4821


Ignore:
Timestamp:
Mar 18, 2009, 3:42:35 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1238: Check performance of BioAssaySetExporter?

Need special handling of 'position' column, since technically it is part of the spot data, but in reality it is used as a reporter field. The fix is needed since otherwise the position will not be written for spots that doesn't have a reporter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/BioAssaySetExporter.java

    r4820 r4821  
    546546    for (String field : reporterFields)
    547547    {
    548       out.print("\t" + qi.get(field).getExportName());
     548      QueryItem item = qi.get(field);
     549      out.print("\t" + item.getExportName());
     550      if ("position".equals(item.getExportName())) noReporter.append("{pos}");
    549551      noReporter.append("\t");
    550552    }
     
    635637        }
    636638        String reporter = reporterLine.get(currentPos);
    637         if (reporter == null) reporter = noReporter.toString();
     639        if (reporter == null)
     640        {
     641          reporter = noReporter.toString().replace("{pos}", Integer.toString(currentPos));
     642        }
    638643        out.print(reporter);
    639644      }
Note: See TracChangeset for help on using the changeset viewer.