1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| #-------------------------------------- BoulderBlast.pl --------------------------------------#
# Récupère et affiche à l'écran les informations d'un fichier blast
# Query query sequence
# Subject subject sequence
# Identity percent identity of the hit
# Expect expectation value for the hit
# Length aligned sequences length
#-------------------------------------- BoulderBlast.pl --------------------------------------#
use strict;
use warnings;
use Boulder::Blast;
# parse and read a set of blast output files
my $blast = Boulder::Blast->parse("P:/Perl/scripts2/Files/Blast_Result.blast");
# once you have a $blast object, you can get info about it:
my $query = $blast->Blast_query;
my @hits = $blast->Blast_hits;
foreach my $hit (@hits)
{
my $hit_sequence = $hit->Name; # get the ID
my $significance = $hit->Signif; # get the significance
my @hsps = $hit->Hsps; # list of HSPs
foreach my $hsp (@hsps)
{
my $query = $hsp->Query; # query sequence
my $subject = $hsp->Subject; # subject sequence
my $Identity = $hsp->Identity; # percent identity of the hit
my $Expect = $hsp->Expect; # expectation value for the hit
my $length = $hsp->Length; # aligned sequences length
print "QUERY : $query\n";
print "SUBJECT : $subject\n";
print "IDENTITY :$Identity\n";
print "EXPECT : $Expect\n";
print "LENGTH : $length\n";
}
} |
Partager