int start = 0;
if(seqLength < windowSize) { return 0; }
-
+
while(start < seqLength){
double windowSum = 0.0000;
for(int i=start;i<end;i++){
- windowSum += qScores[i];
+ windowSum += qScores[i];
}
double windowAverage = windowSum / (double)(end-start);
if(end >= seqLength){ end = seqLength - 1; }
}
-
if(end == -1){ end = seqLength; }
-
sequence.setUnaligned(rawSequence.substr(0,end));
trimQScores(-1, end);