Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Perl regular expression for amino acid sequence

by TedYoung (Deacon)
on Dec 01, 2004 at 20:12 UTC ( [id://411550]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ($seq{$k} =~ /([QGYN]{3,6})/g) {
         my $seq = $1;
    ...
         print "\n$k";
         print "$seq begins at position ", (pos($seq{$k})-length($s)) , "\
    +n";
    }
    
  2. or download this
    my $length = length $s; # Pull this out of the loop for eff.
    my $sequence = $seq{$k};
    ...
         next if $seq =~ /(.)\1\1/;
         print "\n$k $seq begins at position $pos\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://411550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found