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.



942
943
944
945
946
947
948
# File 'lib/bio/appl/blast/format0.rb', line 942

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)

aligned length



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

def align_len
  @align_len
end

#bit_scoreObject (readonly)

bit score



1041
1042
1043
# File 'lib/bio/appl/blast/format0.rb', line 1041

def bit_score
  @bit_score
end

#evalueObject (readonly)

e-value



1048
1049
1050
# File 'lib/bio/appl/blast/format0.rb', line 1048

def evalue
  @evalue
end

#gapsObject (readonly)

Gaps (number of gaps)



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

def gaps
  @gaps
end

#hit_frameObject (readonly)

frame of the hit



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

def hit_frame
  @hit_frame
end

#hit_fromObject (readonly)

start position of the hit (the first position is 1)



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

def hit_from
  @hit_from
end

#hit_strandObject (readonly)

strand of the hit (“Plus” or “Minus” or nil)



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

def hit_strand
  @hit_strand
end

#hit_toObject (readonly)

end position of the hit (including its position)



1193
1194
1195
# File 'lib/bio/appl/blast/format0.rb', line 1193

def hit_to
  @hit_to
end

#hseqObject (readonly)

hit sequence (with gaps) of the alignment of the hsp



1173
1174
1175
# File 'lib/bio/appl/blast/format0.rb', line 1173

def hseq
  @hseq
end

#identityObject (readonly)

Identity (number of identical nucleotides or amino acids)



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

def identity
  @identity
end

#midlineObject (readonly)

middle line of the alignment of the hsp



1177
1178
1179
# File 'lib/bio/appl/blast/format0.rb', line 1177

def midline
  @midline
end

#percent_gapsObject (readonly)

percent of gaps



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

def percent_gaps
  @percent_gaps
end

#percent_identityObject (readonly)

percent of identical nucleotides or amino acids



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

def percent_identity
  @percent_identity
end

#percent_positiveObject (readonly)

percent of positive hit amino acids or nucleotides



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

def percent_positive
  @percent_positive
end

#positiveObject (readonly)

Positives (number of positive hit amino acids or nucleotides)



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

def positive
  @positive
end

#qseqObject (readonly)

query sequence (with gaps) of the alignment of the hsp



1170
1171
1172
# File 'lib/bio/appl/blast/format0.rb', line 1170

def qseq
  @qseq
end

#query_frameObject (readonly)

frame of the query



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

def query_frame
  @query_frame
end

#query_fromObject (readonly)

start position of the query (the first position is 1)



1181
1182
1183
# File 'lib/bio/appl/blast/format0.rb', line 1181

def query_from
  @query_from
end

#query_strandObject (readonly)

strand of the query (“Plus” or “Minus” or nil)



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

def query_strand
  @query_strand
end

#query_toObject (readonly)

end position of the query (including its position)



1185
1186
1187
# File 'lib/bio/appl/blast/format0.rb', line 1185

def query_to
  @query_to
end

#scoreObject (readonly)

score



1044
1045
1046
# File 'lib/bio/appl/blast/format0.rb', line 1044

def score
  @score
end