Class: Bio::Iprscan::Report::Match
- Defined in:
- lib/bio/appl/iprscan/report.rb
Overview
Description
Container class for InterProScan matches.
Usage
match = Match.new(:query_id => ...)
match.ipr_id = 'IPR001234'
match.ipr_id #=> 'IPR001234'
Instance Method Summary collapse
-
#accession ⇒ Object
the database members entry for this match.
-
#crc64 ⇒ Object
CRC64 checksum of query sequence.
-
#date ⇒ Object
Date for computation.
-
#description ⇒ Object
the database mambers description for this match.
-
#evalue ⇒ Object
E-value of the match.
-
#go_terms ⇒ Object
the Gene Ontology description for the InterPro entry, in “Aspect :term (ID)” format.
-
#initialize(hash) ⇒ Match
constructor
A new instance of Match.
-
#ipr_id ⇒ Object
the corresponding InterPro entry (if any).
-
#ipr_odescription ⇒ Object
the descriotion of the InterPro entry.
-
#length ⇒ Object
the length of the sequence in AA.
-
#match_end ⇒ Object
the end of the domain match.
-
#match_start ⇒ Object
the start of the domain match.
- #method_missing(name, arg = nil) ⇒ Object
-
#method_name ⇒ Object
the analysis method launched.
-
#query_id ⇒ Object
Id of the input sequence.
-
#status ⇒ Object
Status of the match (T for true / M for marginal).
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, arg = nil) ⇒ Object
359 360 361 362 363 364 365 366 |
# File 'lib/bio/appl/iprscan/report.rb', line 359 def method_missing(name, arg = nil) if arg name = name.to_s.sub(/=$/, '') @data[name.to_sym] = arg else @data[name.to_sym] end end |
Instance Method Details
#accession ⇒ Object
the database members entry for this match.
351 |
# File 'lib/bio/appl/iprscan/report.rb', line 351 def accession; @data[:accession]; end |
#crc64 ⇒ Object
CRC64 checksum of query sequence.
333 |
# File 'lib/bio/appl/iprscan/report.rb', line 333 def crc64; @data[:crc64]; end |
#date ⇒ Object
Date for computation.
331 |
# File 'lib/bio/appl/iprscan/report.rb', line 331 def date; @data[:date]; end |
#description ⇒ Object
the database mambers description for this match.
353 |
# File 'lib/bio/appl/iprscan/report.rb', line 353 def description; @data[:description]; end |
#evalue ⇒ Object
E-value of the match
335 |
# File 'lib/bio/appl/iprscan/report.rb', line 335 def evalue; @data[:evalue]; end |
#go_terms ⇒ Object
the Gene Ontology description for the InterPro entry, in “Aspect :term (ID)” format.
345 |
# File 'lib/bio/appl/iprscan/report.rb', line 345 def go_terms; @data[:go_terms]; end |
#ipr_id ⇒ Object
the corresponding InterPro entry (if any).
339 |
# File 'lib/bio/appl/iprscan/report.rb', line 339 def ipr_id; @data[:ipr_id]; end |
#ipr_odescription ⇒ Object
the descriotion of the InterPro entry.
357 |
# File 'lib/bio/appl/iprscan/report.rb', line 357 def ipr_odescription; @data[:ipr_description]; end |
#length ⇒ Object
the length of the sequence in AA.
341 |
# File 'lib/bio/appl/iprscan/report.rb', line 341 def length; @data[:length]; end |
#match_end ⇒ Object
the end of the domain match.
349 |
# File 'lib/bio/appl/iprscan/report.rb', line 349 def match_end; @data[:match_end]; end |
#match_start ⇒ Object
the start of the domain match.
355 |
# File 'lib/bio/appl/iprscan/report.rb', line 355 def match_start; @data[:match_start]; end |
#method_name ⇒ Object
the analysis method launched.
343 |
# File 'lib/bio/appl/iprscan/report.rb', line 343 def method_name; @data[:method]; end |
#query_id ⇒ Object
Id of the input sequence.
347 |
# File 'lib/bio/appl/iprscan/report.rb', line 347 def query_id; @data[:query_id]; end |
#status ⇒ Object
Status of the match (T for true / M for marginal).
337 |
# File 'lib/bio/appl/iprscan/report.rb', line 337 def status; @data[:status]; end |