Bio::FastParsers::Blast::Xml::Hit - NCBI BLAST DTD-derived internal class
version 0.173510
# TODO
ArrayRef of Bio::FastParsers::Blast::Xml::Hsp
Returns the number of Hsps of the Hit.
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $count = $hit->count_hsps;
This method does not accept any arguments.
Returns all the Hsps of the Hit (not an array reference).
# $hit is a Bio::FastParsers::Blast::Xml::Hit my @hsps = $hit->all_hsps;
Returns one Hsp of the Hit by its index. You can also use negative index numbers, just as with Perl's core array handling. If the specified Hsp does not exist, this method will return undef.
undef
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $hsp = $hit->get_hsp($index); croak "Hsp $index not found!" unless defined $hsp;
This method accepts just one argument (and not an array slice).
Shifts the first Hsp of the array off and returns it, shortening the array by 1 and moving everything down. If there are no more Hsps in the array, returns undef.
# $hit is a Bio::FastParsers::Blast::Xml::Hit while (my $hsp = $hit->next_hsp) { # process $hsp # ... }
Returns the value of the element <Hit_accession>.
<Hit_accession
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $accession = $hit->accession;
Returns the value of the element <Hit_def>.
<Hit_def
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $def = $hit->def;
Returns the value of the element <Hit_id>.
<Hit_id
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $id = $hit->id;
Returns the value of the element <Hit_len>.
<Hit_len
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $len = $hit->len;
Returns the value of the element <Hit_num>.
<Hit_num
# $hit is a Bio::FastParsers::Blast::Xml::Hit my $num = $hit->num;
Denis BAURAIN <denis.baurain@uliege.be>
This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bio::FastParsers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::FastParsers
CPAN shell
perl -MCPAN -e shell install Bio::FastParsers
For more information on module installation, please visit the detailed CPAN module installation guide.