public static Range extendRange ( SequenceQuality quality , QualityTrimmerParameters parameters , Range initialRange ) { int lower = pabs ( trim ( quality , 0 , initialRange . getLower ( ) , - 1 , false , parameters ) ) ; int upper = pabs ( trim ( quality , initialRange . getUpper ( ) , quality . size ( ) , + 1 , false , parameters ) ) + 1 ; return new Range ( lower , upper , initialRange . isReverse ( ) ) ; }
Extend initialRange to the biggest possible range that fulfils the criteria of QualityTrimmer along the whole extended region .