Changeset 2734


Ignore:
Timestamp:
Oct 16, 2006, 2:38:27 PM (16 years ago)
Author:
Johan Enell
Message:

fixes #380

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0.1/src/plugins/core/net/sf/basedb/plugins/MedianRatioNormalization.java

    r2606 r2734  
    221221          query.restrict(intensityRestriction);
    222222          query.joinRawData(JoinType.LEFT);
    223           query.select(Selects.expression(Aggregations.max(Expressions.selected(Dynamic.selectRawData("block"))), "max"));
     223          query.select(Selects.expression(Aggregations.max(Dynamic.rawData("block")), "max"));
     224          query.select(Selects.expression(Aggregations.min(Dynamic.rawData("block")), "min"));
    224225          resultIter = query.iterate(dc);
    225226          int maxBlock = resultIter.next().getInt(resultIter.getIndex("max"));
    226 
    227           for (int i = 0; i < maxBlock; i += blockGroupSize)
     227          int minBlock = resultIter.next().getInt(resultIter.getIndex("min"));
     228
     229          for (int i = minBlock; i < maxBlock; i += blockGroupSize)
    228230          {
    229231            Restriction blockRestriction = Restrictions.between
Note: See TracChangeset for help on using the changeset viewer.