Help for this page

Select Code to Download


  1. or download this
    while ($seq =~ /GCT/ig) { $GCT++; }
    
  2. or download this
    while ($seq =~ /\G(?:...)*?GCT/sig) { $GCT++; }
    
  3. or download this
    while ($seq =~ /\G(...)/sg) { $GCT++ if uc($1) eq 'GCT'; }
    
  4. or download this
    while ($seq =~ /\G(...)/sg) { $counts{uc($1)}++; }
    
  5. or download this
    my %counts;
    ++counts{uc($_)} for $seq =~ /.../sg;
    ...
          print("\n");
       }
    }