Class: Bio::Blast::Report::Hit
Overview
Bio::Blast::Report::Hit
Instance Attribute Summary collapse
-
#accession ⇒ Object
(also: #target_id)
Accession.
-
#definition ⇒ Object
(also: #target_def)
Definition line of subject.
-
#hit_id ⇒ Object
SeqId of subject.
-
#hsps ⇒ Object
readonly
Returns an Array of Bio::Blast::Report::Hsp objects.
-
#len ⇒ Object
(also: #target_len)
Length of subject.
-
#num ⇒ Object
Hit number.
-
#query_def ⇒ Object
Compatible method with Bio::Fasta::Report::Hit class.
-
#query_id ⇒ Object
Compatible method with Bio::Fasta::Report::Hit class.
-
#query_len ⇒ Object
Compatible method with Bio::Fasta::Report::Hit class.
Instance Method Summary collapse
- #bit_score ⇒ Object
-
#each ⇒ Object
Iterates on each Hsp object.
-
#evalue ⇒ Object
Shortcut methods for the best Hsp, some are also compatible with Bio::Fasta::Report::Hit class.
- #identity ⇒ Object
-
#initialize ⇒ Hit
constructor
A new instance of Hit.
- #lap_at ⇒ Object
- #midline ⇒ Object
- #overlap ⇒ Object
- #percent_identity ⇒ Object
- #query_end ⇒ Object
- #query_seq ⇒ Object
- #query_start ⇒ Object
- #target_end ⇒ Object
- #target_seq ⇒ Object
- #target_start ⇒ Object
Constructor Details
#initialize ⇒ Hit
Returns a new instance of Hit.
212 213 214 |
# File 'lib/bio/appl/blast/report.rb', line 212 def initialize @hsps = [] end |
Instance Attribute Details
#accession ⇒ Object Also known as: target_id
Accession
228 229 230 |
# File 'lib/bio/appl/blast/report.rb', line 228 def accession @accession end |
#definition ⇒ Object Also known as: target_def
Definition line of subject
226 227 228 |
# File 'lib/bio/appl/blast/report.rb', line 226 def definition @definition end |
#hit_id ⇒ Object
SeqId of subject
222 223 224 |
# File 'lib/bio/appl/blast/report.rb', line 222 def hit_id @hit_id end |
#hsps ⇒ Object (readonly)
Returns an Array of Bio::Blast::Report::Hsp objects.
217 218 219 |
# File 'lib/bio/appl/blast/report.rb', line 217 def hsps @hsps end |
#len ⇒ Object Also known as: target_len
Length of subject
224 225 226 |
# File 'lib/bio/appl/blast/report.rb', line 224 def len @len end |
#num ⇒ Object
Hit number
220 221 222 |
# File 'lib/bio/appl/blast/report.rb', line 220 def num @num end |
#query_def ⇒ Object
Compatible method with Bio::Fasta::Report::Hit class.
240 241 242 |
# File 'lib/bio/appl/blast/report.rb', line 240 def query_def @query_def end |
#query_id ⇒ Object
Compatible method with Bio::Fasta::Report::Hit class.
238 239 240 |
# File 'lib/bio/appl/blast/report.rb', line 238 def query_id @query_id end |
#query_len ⇒ Object
Compatible method with Bio::Fasta::Report::Hit class.
242 243 244 |
# File 'lib/bio/appl/blast/report.rb', line 242 def query_len @query_len end |
Instance Method Details
#bit_score ⇒ Object
254 |
# File 'lib/bio/appl/blast/report.rb', line 254 def bit_score; @hsps.first.bit_score; end |
#each ⇒ Object
Iterates on each Hsp object.
231 232 233 234 235 |
# File 'lib/bio/appl/blast/report.rb', line 231 def each @hsps.each do |x| yield x end end |
#evalue ⇒ Object
Shortcut methods for the best Hsp, some are also compatible with Bio::Fasta::Report::Hit class.
253 |
# File 'lib/bio/appl/blast/report.rb', line 253 def evalue; @hsps.first.evalue; end |
#identity ⇒ Object
255 |
# File 'lib/bio/appl/blast/report.rb', line 255 def identity; @hsps.first.identity; end |
#lap_at ⇒ Object
267 268 269 |
# File 'lib/bio/appl/blast/report.rb', line 267 def lap_at [ query_start, query_end, target_start, target_end ] end |
#midline ⇒ Object
261 |
# File 'lib/bio/appl/blast/report.rb', line 261 def midline; @hsps.first.midline; end |
#overlap ⇒ Object
257 |
# File 'lib/bio/appl/blast/report.rb', line 257 def overlap; @hsps.first.align_len; end |
#percent_identity ⇒ Object
256 |
# File 'lib/bio/appl/blast/report.rb', line 256 def percent_identity; @hsps.first.percent_identity; end |
#query_end ⇒ Object
264 |
# File 'lib/bio/appl/blast/report.rb', line 264 def query_end; @hsps.first.query_to; end |
#query_seq ⇒ Object
259 |
# File 'lib/bio/appl/blast/report.rb', line 259 def query_seq; @hsps.first.qseq; end |
#query_start ⇒ Object
263 |
# File 'lib/bio/appl/blast/report.rb', line 263 def query_start; @hsps.first.query_from; end |
#target_end ⇒ Object
266 |
# File 'lib/bio/appl/blast/report.rb', line 266 def target_end; @hsps.first.hit_to; end |
#target_seq ⇒ Object
260 |
# File 'lib/bio/appl/blast/report.rb', line 260 def target_seq; @hsps.first.hseq; end |
#target_start ⇒ Object
265 |
# File 'lib/bio/appl/blast/report.rb', line 265 def target_start; @hsps.first.hit_from; end |