Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: how do i obtain blast result from the given file

by rjt (Curate)
on Jun 17, 2013 at 20:15 UTC ( [id://1039465]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $how_many = 10;
        while (<$fh>) {
            if (/^(.+?)\|(.+?)\| (.+?)\s+(\d+)\s+(\d+e[+-]\d+)$/) {
    ...
                last if --$how_many == 0;
            }
        }
    
  2. or download this
        my @hits; # Keys in order
        my $how_many = 10;
        while (<$fh>) {
    ...
            printf "%-5s %-55s %5s\n",
                $_->{col1}, $_->{desc}, $_->{score};
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-18 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found