Help for this page

Select Code to Download


  1. or download this
    $threshold = "N" # see description above
    for($i=1;$i<=6;$i++) {
    my $pattern = "." x $i;
    while ($sequence_string =~ /($pattern)\1{$threshold,}/g) { .... }
    }
    
  2. or download this
    while ($sequence_string =~ /(.)\1{$threshold,}|(.{2,3}?)\2{$threshold,}|(.{4,6}?)\3{$threshold,}/g)
  3. or download this
    $i = 1;
    while ($i < $genome_length)
    ...
       }
       $i = (end of previous match + 1)
    }