Class: Bio::Blast::Default::Report::HSP
- Inherits:
-
Object
- Object
- 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)
-
- (Object) align_len
readonly
Returns the value of attribute align_len.
-
- (Object) bit_score
readonly
Returns the value of attribute bit_score.
-
- (Object) evalue
readonly
Returns the value of attribute evalue.
-
- (Object) gaps
readonly
Returns the value of attribute gaps.
-
- (Object) hit_frame
readonly
Returns the value of attribute hit_frame.
-
- (Object) hit_from
readonly
Returns the value of attribute hit_from.
-
- (Object) hit_strand
readonly
Returns the value of attribute hit_strand.
-
- (Object) hit_to
readonly
Returns the value of attribute hit_to.
-
- (Object) hseq
readonly
Returns the value of attribute hseq.
-
- (Object) identity
readonly
Returns the value of attribute identity.
-
- (Object) midline
readonly
Returns the value of attribute midline.
-
- (Object) percent_gaps
readonly
Returns the value of attribute percent_gaps.
-
- (Object) percent_identity
readonly
Returns the value of attribute percent_identity.
-
- (Object) percent_positive
readonly
Returns the value of attribute percent_positive.
-
- (Object) positive
readonly
Returns the value of attribute positive.
-
- (Object) qseq
readonly
Returns the value of attribute qseq.
-
- (Object) query_frame
readonly
Returns the value of attribute query_frame.
-
- (Object) query_from
readonly
Returns the value of attribute query_from.
-
- (Object) query_strand
readonly
Returns the value of attribute query_strand.
-
- (Object) query_to
readonly
Returns the value of attribute query_to.
-
- (Object) score
readonly
Returns the value of attribute score.
-
- (Object) stat_method
readonly
Returns the value of attribute stat_method.
Class Method Summary (collapse)
-
+ (Object) method_after_parse_alignment(*names)
Defines attributes which call parse_alignment before accessing.
-
+ (Object) method_after_parse_score(*names)
Defines attributes which call parse_score before accessing.
Instance Method Summary (collapse)
-
- (HSP) initialize(data)
constructor
Creates new HSP object.
Constructor Details
- (HSP) initialize(data)
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
- (Object) align_len (readonly)
Returns the value of attribute align_len
1109 1110 1111 |
# File 'lib/bio/appl/blast/format0.rb', line 1109 def align_len @align_len end |
- (Object) bit_score (readonly)
Returns the value of attribute bit_score
1070 1071 1072 |
# File 'lib/bio/appl/blast/format0.rb', line 1070 def bit_score @bit_score end |
- (Object) evalue (readonly)
Returns the value of attribute evalue
1077 1078 1079 |
# File 'lib/bio/appl/blast/format0.rb', line 1077 def evalue @evalue end |
- (Object) gaps (readonly)
Returns the value of attribute gaps
1102 1103 1104 |
# File 'lib/bio/appl/blast/format0.rb', line 1102 def gaps @gaps end |
- (Object) hit_frame (readonly)
Returns the value of attribute hit_frame
1084 1085 1086 |
# File 'lib/bio/appl/blast/format0.rb', line 1084 def hit_frame @hit_frame end |
- (Object) hit_from (readonly)
Returns the value of attribute hit_from
1225 1226 1227 |
# File 'lib/bio/appl/blast/format0.rb', line 1225 def hit_from @hit_from end |
- (Object) hit_strand (readonly)
Returns the value of attribute hit_strand
1117 1118 1119 |
# File 'lib/bio/appl/blast/format0.rb', line 1117 def hit_strand @hit_strand end |
- (Object) hit_to (readonly)
Returns the value of attribute hit_to
1229 1230 1231 |
# File 'lib/bio/appl/blast/format0.rb', line 1229 def hit_to @hit_to end |
- (Object) hseq (readonly)
Returns the value of attribute hseq
1209 1210 1211 |
# File 'lib/bio/appl/blast/format0.rb', line 1209 def hseq @hseq end |
- (Object) identity (readonly)
Returns the value of attribute identity
1088 1089 1090 |
# File 'lib/bio/appl/blast/format0.rb', line 1088 def identity @identity end |
- (Object) midline (readonly)
Returns the value of attribute midline
1213 1214 1215 |
# File 'lib/bio/appl/blast/format0.rb', line 1213 def midline @midline end |
- (Object) percent_gaps (readonly)
Returns the value of attribute percent_gaps
1105 1106 1107 |
# File 'lib/bio/appl/blast/format0.rb', line 1105 def percent_gaps @percent_gaps end |
- (Object) percent_identity (readonly)
Returns the value of attribute percent_identity
1091 1092 1093 |
# File 'lib/bio/appl/blast/format0.rb', line 1091 def percent_identity @percent_identity end |
- (Object) percent_positive (readonly)
Returns the value of attribute percent_positive
1098 1099 1100 |
# File 'lib/bio/appl/blast/format0.rb', line 1098 def percent_positive @percent_positive end |
- (Object) positive (readonly)
Returns the value of attribute positive
1095 1096 1097 |
# File 'lib/bio/appl/blast/format0.rb', line 1095 def positive @positive end |
- (Object) qseq (readonly)
Returns the value of attribute qseq
1206 1207 1208 |
# File 'lib/bio/appl/blast/format0.rb', line 1206 def qseq @qseq end |
- (Object) query_frame (readonly)
Returns the value of attribute query_frame
1081 1082 1083 |
# File 'lib/bio/appl/blast/format0.rb', line 1081 def query_frame @query_frame end |
- (Object) query_from (readonly)
Returns the value of attribute query_from
1217 1218 1219 |
# File 'lib/bio/appl/blast/format0.rb', line 1217 def query_from @query_from end |
- (Object) query_strand (readonly)
Returns the value of attribute query_strand
1113 1114 1115 |
# File 'lib/bio/appl/blast/format0.rb', line 1113 def query_strand @query_strand end |
- (Object) query_to (readonly)
Returns the value of attribute query_to
1221 1222 1223 |
# File 'lib/bio/appl/blast/format0.rb', line 1221 def query_to @query_to end |
- (Object) score (readonly)
Returns the value of attribute score
1073 1074 1075 |
# File 'lib/bio/appl/blast/format0.rb', line 1073 def score @score end |
- (Object) stat_method (readonly)
Returns the value of attribute stat_method
1124 1125 1126 |
# File 'lib/bio/appl/blast/format0.rb', line 1124 def stat_method @stat_method end |
Class Method Details
+ (Object) method_after_parse_alignment(*names)
Defines attributes which call parse_alignment before accessing.
1198 1199 1200 1201 1202 |
# File 'lib/bio/appl/blast/format0.rb', line 1198 def self.method_after_parse_alignment(*names) names.each do |x| module_eval("def #{x}; parse_alignment; @#{x}; end") end end |
+ (Object) method_after_parse_score(*names)
Defines attributes which call parse_score before accessing.
1062 1063 1064 1065 1066 |
# File 'lib/bio/appl/blast/format0.rb', line 1062 def self.method_after_parse_score(*names) names.each do |x| module_eval("def #{x}; parse_score; @#{x}; end") end end |