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.



962
963
964
965
966
967
968
# File 'lib/bio/appl/blast/format0.rb', line 962

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



1104
1105
1106
# File 'lib/bio/appl/blast/format0.rb', line 1104

def align_len
  @align_len
end

#bit_scoreObject (readonly)

bit score



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

def bit_score
  @bit_score
end

#evalueObject (readonly)

e-value



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

def evalue
  @evalue
end

#gapsObject (readonly)

Gaps (number of gaps)



1097
1098
1099
# File 'lib/bio/appl/blast/format0.rb', line 1097

def gaps
  @gaps
end

#hit_frameObject (readonly)

frame of the hit



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

def hit_frame
  @hit_frame
end

#hit_fromObject (readonly)

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



1220
1221
1222
# File 'lib/bio/appl/blast/format0.rb', line 1220

def hit_from
  @hit_from
end

#hit_strandObject (readonly)

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



1112
1113
1114
# File 'lib/bio/appl/blast/format0.rb', line 1112

def hit_strand
  @hit_strand
end

#hit_toObject (readonly)

end position of the hit (including its position)



1224
1225
1226
# File 'lib/bio/appl/blast/format0.rb', line 1224

def hit_to
  @hit_to
end

#hseqObject (readonly)

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



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

def hseq
  @hseq
end

#identityObject (readonly)

Identity (number of identical nucleotides or amino acids)



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

def identity
  @identity
end

#midlineObject (readonly)

middle line of the alignment of the hsp



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

def midline
  @midline
end

#percent_gapsObject (readonly)

percent of gaps



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

def percent_gaps
  @percent_gaps
end

#percent_identityObject (readonly)

percent of identical nucleotides or amino acids



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

def percent_identity
  @percent_identity
end

#percent_positiveObject (readonly)

percent of positive hit amino acids or nucleotides



1093
1094
1095
# File 'lib/bio/appl/blast/format0.rb', line 1093

def percent_positive
  @percent_positive
end

#positiveObject (readonly)

Positives (number of positive hit amino acids or nucleotides)



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

def positive
  @positive
end

#qseqObject (readonly)

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



1201
1202
1203
# File 'lib/bio/appl/blast/format0.rb', line 1201

def qseq
  @qseq
end

#query_frameObject (readonly)

frame of the query



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

def query_frame
  @query_frame
end

#query_fromObject (readonly)

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



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

def query_from
  @query_from
end

#query_strandObject (readonly)

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



1108
1109
1110
# File 'lib/bio/appl/blast/format0.rb', line 1108

def query_strand
  @query_strand
end

#query_toObject (readonly)

end position of the query (including its position)



1216
1217
1218
# File 'lib/bio/appl/blast/format0.rb', line 1216

def query_to
  @query_to
end

#scoreObject (readonly)

score



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

def score
  @score
end

#stat_methodObject (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)



1119
1120
1121
# File 'lib/bio/appl/blast/format0.rb', line 1119

def stat_method
  @stat_method
end