You can parse all the ouput with
Bio::SearchIO. Try reading about
Bioperl. Many many incarnations on how to do this, but if you wanted to run it on the fly try the following code. You can also of course run the program and pipe the output to a file.
The
HOWTOs on the site give a good coverage on the SearchIO system.
(Note: Due to snowstorm in Boston and power outage the bioperl.org site is down for a little while)
use Bio::SearchIO.
my $fh;
open($fh, "fasta34 query.pep db |");
my $in = Bio::SearchIO->new(-format => 'fasta', -fh => $fh);
while( my $r = $in->next_result ) {
while( my $hit = $r->next_hit ) {
while( my $hsp = $hit->next_hsp ) {
}
}
}
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.