Class: Bio::Blast::Default::Report::HSP
- Defined in:
- lib/bio/appl/blast/format0.rb
Overview
Bio::Blast::Default::Report::HSP holds information about the hsp (high-scoring segment pair).
Direct Known Subclasses
Instance Attribute Summary collapse
-
#align_len ⇒ Object
readonly
aligned length.
-
#bit_score ⇒ Object
readonly
bit score.
-
#evalue ⇒ Object
readonly
e-value.
-
#gaps ⇒ Object
readonly
Gaps (number of gaps).
-
#hit_frame ⇒ Object
readonly
frame of the hit.
-
#hit_from ⇒ Object
readonly
start position of the hit (the first position is 1).
-
#hit_strand ⇒ Object
readonly
strand of the hit (“Plus” or “Minus” or nil).
-
#hit_to ⇒ Object
readonly
end position of the hit (including its position).
-
#hseq ⇒ Object
readonly
hit sequence (with gaps) of the alignment of the hsp.
-
#identity ⇒ Object
readonly
Identity (number of identical nucleotides or amino acids).
-
#midline ⇒ Object
readonly
middle line of the alignment of the hsp.
-
#percent_gaps ⇒ Object
readonly
percent of gaps.
-
#percent_identity ⇒ Object
readonly
percent of identical nucleotides or amino acids.
-
#percent_positive ⇒ Object
readonly
percent of positive hit amino acids or nucleotides.
-
#positive ⇒ Object
readonly
Positives (number of positive hit amino acids or nucleotides).
-
#qseq ⇒ Object
readonly
query sequence (with gaps) of the alignment of the hsp.
-
#query_frame ⇒ Object
readonly
frame of the query.
-
#query_from ⇒ Object
readonly
start position of the query (the first position is 1).
-
#query_strand ⇒ Object
readonly
strand of the query (“Plus” or “Minus” or nil).
-
#query_to ⇒ Object
readonly
end position of the query (including its position).
-
#score ⇒ Object
readonly
score.
-
#stat_method ⇒ Object
readonly
statistical method for calculating evalue and/or score (nil or a string) (note that composition-based statistics for blastp or tblastn were enabled by default after NCBI BLAST 2.2.17).
Instance Method Summary collapse
-
#initialize(data) ⇒ HSP
constructor
Creates new HSP object.
Constructor Details
#initialize(data) ⇒ HSP
Creates new HSP object. It is designed to be called only internally from the Bio::Blast::Default::Report::Hit class. Users should not call the method directly.
967 968 969 970 971 972 973 |
# File 'lib/bio/appl/blast/format0.rb', line 967 def initialize(data) @f0score = data.shift @f0alignment = [] while r = data[0] and /^(Query|Sbjct)\:/ =~ r @f0alignment << data.shift end end |
Instance Attribute Details
#align_len ⇒ Object (readonly)
aligned length
1109 1110 1111 |
# File 'lib/bio/appl/blast/format0.rb', line 1109 def align_len @align_len end |
#bit_score ⇒ Object (readonly)
bit score
1070 1071 1072 |
# File 'lib/bio/appl/blast/format0.rb', line 1070 def bit_score @bit_score end |
#evalue ⇒ Object (readonly)
e-value
1077 1078 1079 |
# File 'lib/bio/appl/blast/format0.rb', line 1077 def evalue @evalue end |
#gaps ⇒ Object (readonly)
Gaps (number of gaps)
1102 1103 1104 |
# File 'lib/bio/appl/blast/format0.rb', line 1102 def gaps @gaps end |
#hit_frame ⇒ Object (readonly)
frame of the hit
1084 1085 1086 |
# File 'lib/bio/appl/blast/format0.rb', line 1084 def hit_frame @hit_frame end |
#hit_from ⇒ Object (readonly)
start position of the hit (the first position is 1)
1225 1226 1227 |
# File 'lib/bio/appl/blast/format0.rb', line 1225 def hit_from @hit_from end |
#hit_strand ⇒ Object (readonly)
strand of the hit (“Plus” or “Minus” or nil)
1117 1118 1119 |
# File 'lib/bio/appl/blast/format0.rb', line 1117 def hit_strand @hit_strand end |
#hit_to ⇒ Object (readonly)
end position of the hit (including its position)
1229 1230 1231 |
# File 'lib/bio/appl/blast/format0.rb', line 1229 def hit_to @hit_to end |
#hseq ⇒ Object (readonly)
hit sequence (with gaps) of the alignment of the hsp
1209 1210 1211 |
# File 'lib/bio/appl/blast/format0.rb', line 1209 def hseq @hseq end |
#identity ⇒ Object (readonly)
Identity (number of identical nucleotides or amino acids)
1088 1089 1090 |
# File 'lib/bio/appl/blast/format0.rb', line 1088 def identity @identity end |
#midline ⇒ Object (readonly)
middle line of the alignment of the hsp
1213 1214 1215 |
# File 'lib/bio/appl/blast/format0.rb', line 1213 def midline @midline end |
#percent_gaps ⇒ Object (readonly)
percent of gaps
1105 1106 1107 |
# File 'lib/bio/appl/blast/format0.rb', line 1105 def percent_gaps @percent_gaps end |
#percent_identity ⇒ Object (readonly)
percent of identical nucleotides or amino acids
1091 1092 1093 |
# File 'lib/bio/appl/blast/format0.rb', line 1091 def percent_identity @percent_identity end |
#percent_positive ⇒ Object (readonly)
percent of positive hit amino acids or nucleotides
1098 1099 1100 |
# File 'lib/bio/appl/blast/format0.rb', line 1098 def percent_positive @percent_positive end |
#positive ⇒ Object (readonly)
Positives (number of positive hit amino acids or nucleotides)
1095 1096 1097 |
# File 'lib/bio/appl/blast/format0.rb', line 1095 def positive @positive end |
#qseq ⇒ Object (readonly)
query sequence (with gaps) of the alignment of the hsp
1206 1207 1208 |
# File 'lib/bio/appl/blast/format0.rb', line 1206 def qseq @qseq end |
#query_frame ⇒ Object (readonly)
frame of the query
1081 1082 1083 |
# File 'lib/bio/appl/blast/format0.rb', line 1081 def query_frame @query_frame end |
#query_from ⇒ Object (readonly)
start position of the query (the first position is 1)
1217 1218 1219 |
# File 'lib/bio/appl/blast/format0.rb', line 1217 def query_from @query_from end |
#query_strand ⇒ Object (readonly)
strand of the query (“Plus” or “Minus” or nil)
1113 1114 1115 |
# File 'lib/bio/appl/blast/format0.rb', line 1113 def query_strand @query_strand end |
#query_to ⇒ Object (readonly)
end position of the query (including its position)
1221 1222 1223 |
# File 'lib/bio/appl/blast/format0.rb', line 1221 def query_to @query_to end |
#score ⇒ Object (readonly)
score
1073 1074 1075 |
# File 'lib/bio/appl/blast/format0.rb', line 1073 def score @score end |
#stat_method ⇒ Object (readonly)
statistical method for calculating evalue and/or score (nil or a string) (note that composition-based statistics for blastp or tblastn were enabled by default after NCBI BLAST 2.2.17)
1124 1125 1126 |
# File 'lib/bio/appl/blast/format0.rb', line 1124 def stat_method @stat_method end |