Give user ability to turn off max allowed interval size
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2414 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
a5f75cbfd4
commit
566b556b50
|
|
@ -70,7 +70,7 @@ public class IntervalMergerWalker extends ReadWalker<Integer,Integer> {
|
|||
|
||||
// ignore all intervals which we've passed
|
||||
while ( loc.isPast(currentInterval) ) {
|
||||
if ( currentIntervalIsUsed && currentInterval.getStop() - currentInterval.getStart() < maxIntervalSize) {
|
||||
if ( currentIntervalIsUsed && (maxIntervalSize <= 0 || currentInterval.getStop() - currentInterval.getStart() <= maxIntervalSize) ) {
|
||||
out.println(currentInterval);
|
||||
currentIntervalIsUsed = false;
|
||||
}
|
||||
|
|
@ -106,7 +106,7 @@ public class IntervalMergerWalker extends ReadWalker<Integer,Integer> {
|
|||
@Override
|
||||
public void onTraversalDone( Integer value ) {
|
||||
if ( currentInterval != null && currentIntervalIsUsed &&
|
||||
currentInterval.getStop() - currentInterval.getStart() < maxIntervalSize)
|
||||
(maxIntervalSize <= 0 || currentInterval.getStop() - currentInterval.getStart() < maxIntervalSize) )
|
||||
out.println(currentInterval);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue