if ($windowSeq =~ /GG$/) { $windowStart += $windowSize; } else { $windowStart += $stepSize; }