Class: Bio::Blast::Default::Report::HSP

Inherits:
Object
  • Object
show all
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

Bl2seq::Report::HSP, WU::Report::HSP

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



949
950
951
952
953
954
955
# File 'lib/bio/appl/blast/format0.rb', line 949

def initialize(data)
  @f0score = data.shift
  @f0alignment = []
  while r = data[0] and /^(Query|Sbjct)\:/ =~ r
    @f0alignment << data.shift
  end
end

Instance Attribute Details

#align_lenObject (readonly)

Returns the value of attribute align_len



1091
1092
1093
# File 'lib/bio/appl/blast/format0.rb', line 1091

def align_len
  @align_len
end

#bit_scoreObject (readonly)

Returns the value of attribute bit_score



1052
1053
1054
# File 'lib/bio/appl/blast/format0.rb', line 1052

def bit_score
  @bit_score
end

#evalueObject (readonly)

Returns the value of attribute evalue



1059
1060
1061
# File 'lib/bio/appl/blast/format0.rb', line 1059

def evalue
  @evalue
end

#gapsObject (readonly)

Returns the value of attribute gaps



1084
1085
1086
# File 'lib/bio/appl/blast/format0.rb', line 1084

def gaps
  @gaps
end

#hit_frameObject (readonly)

Returns the value of attribute hit_frame



1066
1067
1068
# File 'lib/bio/appl/blast/format0.rb', line 1066

def hit_frame
  @hit_frame
end

#hit_fromObject (readonly)

Returns the value of attribute hit_from



1207
1208
1209
# File 'lib/bio/appl/blast/format0.rb', line 1207

def hit_from
  @hit_from
end

#hit_strandObject (readonly)

Returns the value of attribute hit_strand



1099
1100
1101
# File 'lib/bio/appl/blast/format0.rb', line 1099

def hit_strand
  @hit_strand
end

#hit_toObject (readonly)

Returns the value of attribute hit_to



1211
1212
1213
# File 'lib/bio/appl/blast/format0.rb', line 1211

def hit_to
  @hit_to
end

#hseqObject (readonly)

Returns the value of attribute hseq



1191
1192
1193
# File 'lib/bio/appl/blast/format0.rb', line 1191

def hseq
  @hseq
end

#identityObject (readonly)

Returns the value of attribute identity



1070
1071
1072
# File 'lib/bio/appl/blast/format0.rb', line 1070

def identity
  @identity
end

#midlineObject (readonly)

Returns the value of attribute midline



1195
1196
1197
# File 'lib/bio/appl/blast/format0.rb', line 1195

def midline
  @midline
end

#percent_gapsObject (readonly)

Returns the value of attribute percent_gaps



1087
1088
1089
# File 'lib/bio/appl/blast/format0.rb', line 1087

def percent_gaps
  @percent_gaps
end

#percent_identityObject (readonly)

Returns the value of attribute percent_identity



1073
1074
1075
# File 'lib/bio/appl/blast/format0.rb', line 1073

def percent_identity
  @percent_identity
end

#percent_positiveObject (readonly)

Returns the value of attribute percent_positive



1080
1081
1082
# File 'lib/bio/appl/blast/format0.rb', line 1080

def percent_positive
  @percent_positive
end

#positiveObject (readonly)

Returns the value of attribute positive



1077
1078
1079
# File 'lib/bio/appl/blast/format0.rb', line 1077

def positive
  @positive
end

#qseqObject (readonly)

Returns the value of attribute qseq



1188
1189
1190
# File 'lib/bio/appl/blast/format0.rb', line 1188

def qseq
  @qseq
end

#query_frameObject (readonly)

Returns the value of attribute query_frame



1063
1064
1065
# File 'lib/bio/appl/blast/format0.rb', line 1063

def query_frame
  @query_frame
end

#query_fromObject (readonly)

Returns the value of attribute query_from



1199
1200
1201
# File 'lib/bio/appl/blast/format0.rb', line 1199

def query_from
  @query_from
end

#query_strandObject (readonly)

Returns the value of attribute query_strand



1095
1096
1097
# File 'lib/bio/appl/blast/format0.rb', line 1095

def query_strand
  @query_strand
end

#query_toObject (readonly)

Returns the value of attribute query_to



1203
1204
1205
# File 'lib/bio/appl/blast/format0.rb', line 1203

def query_to
  @query_to
end

#scoreObject (readonly)

Returns the value of attribute score



1055
1056
1057
# File 'lib/bio/appl/blast/format0.rb', line 1055

def score
  @score
end

#stat_methodObject (readonly)

Returns the value of attribute stat_method



1106
1107
1108
# File 'lib/bio/appl/blast/format0.rb', line 1106

def stat_method
  @stat_method
end