-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHsp.pir
62 lines (50 loc) · 1.7 KB
/
Hsp.pir
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# A simple container for XML Blast Output; based on NCBI's DTD.
#
- PerlClass PirObject::BlastOutput::Iteration::Hit::Hsp
- InheritsFrom PirObject
- FieldsTable
# Field name Struct Type Comments
#---------------------- --------------- --------------- -----------------------
Hsp_num single int8
Hsp_bit-score single string
Hsp_score single string
Hsp_evalue single string
Hsp_query-from single int8
Hsp_query-to single int8
Hsp_hit-from single int8
Hsp_hit-to single int8
Hsp_pattern-from single int8
Hsp_pattern-to single int8
Hsp_query-frame single int8
Hsp_hit-frame single int8
Hsp_identity single int8
Hsp_positive single int8
Hsp_gaps single int8
Hsp_align-len single int8
Hsp_density single int8
Hsp_qseq single string
Hsp_hseq single string
Hsp_midline single string
- EndFieldsTable
- Methods
our $RCS_VERSION='$Id: Hsp.pir,v 1.3 2008/09/10 19:08:32 riouxp Exp $';
our ($VERSION) = ($RCS_VERSION =~ m#,v ([\w\.]+)#);
sub frac_identical { # as in BioPerl
my $self = shift;
my $id = $self->get_Hsp_identity();
my $len = $self->get_Hsp_align_len() || 1;
return ($id/$len);
}
sub significance {
my $self = shift;
$self->Hsp_evalue(@_);
}
sub start {
my $self = shift;
$self->Hsp_query_from(@_);
}
sub end {
my $self = shift;
$self->Hsp_query_to(@_);
}