public static Range trim ( SequenceQuality quality , QualityTrimmerParameters parameters , Range initialRange ) { int lower = pabs ( trim ( quality , initialRange . getLower ( ) , initialRange . getUpper ( ) , + 1 , true , parameters ) ) + 1 ; assert lower >= initialRange . getLower ( ) ; if ( lower == initialRange . getUpper ( ) ) return null ; int upper = pabs ( trim ( quality , lower , initialRange . getUpper ( ) , - 1 , true , parameters ) ) ; if ( upper == lower ) // Should not happen, just in case return null ; return new Range ( lower , upper , initialRange . isReverse ( ) ) ; }
Trims the initialRange by cutting off low quality nucleotides on both edges .