Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl-w
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    
  3. or download this
    open(my $outfile, ">", "Motif_Result.txt");
    
    ...
    
    open(FIH, $patternseq);
    
  4. or download this
    open my $outfile, '>', 'Motif_Result.txt' or die "Cannot open 'Motif_R
    +esult.txt' $!";
    
    ...
    
    open FIH, '<', $patternseq or die "Cannot open '$patternseq' $!";
    
  5. or download this
    my $in;
    
    ...
             chomp($in);
             my @pats=split " ",$in;
             my $residue=shift@pats;
    
  6. or download this
    while ( <FIH> )
    {
             my ( $residue, @pats ) = split;
    
  7. or download this
             foreach my $nnn (@pats)  # @pats = (AAAAA, TTTTT, GGGGG);
             {
             $patsmap{$nnn}=@residue;
             }
    
  8. or download this
             foreach my $nnn (@pats)  # @pats = (AAAAA, TTTTT, GGGGG);
             {
             $patsmap{$nnn} = 0;
             }
    
  9. or download this
            print "Patterns\t"; print "@pats";             print "\n";
            my $length = @pats;
            print "Total Patterns are: $length"; print "\n";
    
  10. or download this
            print "Patterns\t@pats\nTotal Patterns are: ", scalar @pats, "
    +\n";
    
  11. or download this
                     my @l = split('', $str);
                     my $length=@l;
    
  12. or download this
                     my $length = length $str;
    
  13. or download this
    exit;
         }