class Bio::Iprscan::Report::Match

Description

Container class for InterProScan matches.

Usage

match = Match.new(:query_id => ...)

match.ipr_id = 'IPR001234'
match.ipr_id #=> 'IPR001234'

Public Class Methods

new(hash) click to toggle source
# File lib/bio/appl/iprscan/report.rb, line 322
def initialize(hash)
  @data = Hash.new
  hash.each do |key, value|
    @data[key.to_sym] = value
  end
end

Public Instance Methods

accession() click to toggle source

the database members entry for this match.

# File lib/bio/appl/iprscan/report.rb, line 350
def accession;       @data[:accession];       end
crc64() click to toggle source

CRC64 checksum of query sequence.

# File lib/bio/appl/iprscan/report.rb, line 332
def crc64;           @data[:crc64];           end
date() click to toggle source

Date for computation.

# File lib/bio/appl/iprscan/report.rb, line 330
def date;            @data[:date];            end
description() click to toggle source

the database mambers description for this match.

# File lib/bio/appl/iprscan/report.rb, line 352
def description;     @data[:description];     end
evalue() click to toggle source

E-value of the match

# File lib/bio/appl/iprscan/report.rb, line 334
def evalue;          @data[:evalue];          end
go_terms() click to toggle source

the Gene Ontology description for the InterPro entry, in “Aspect :term (ID)” format.

# File lib/bio/appl/iprscan/report.rb, line 344
def go_terms;        @data[:go_terms];        end
ipr_id() click to toggle source

the corresponding InterPro entry (if any).

# File lib/bio/appl/iprscan/report.rb, line 338
def ipr_id;          @data[:ipr_id];          end
ipr_odescription() click to toggle source

the descriotion of the InterPro entry.

# File lib/bio/appl/iprscan/report.rb, line 356
def ipr_odescription; @data[:ipr_description]; end
length() click to toggle source

the length of the sequence in AA.

# File lib/bio/appl/iprscan/report.rb, line 340
def length;          @data[:length];          end
match_end() click to toggle source

the end of the domain match.

# File lib/bio/appl/iprscan/report.rb, line 348
def match_end;       @data[:match_end];       end
match_start() click to toggle source

the start of the domain match.

# File lib/bio/appl/iprscan/report.rb, line 354
def match_start;     @data[:match_start];     end
method_missing(name, arg = nil) click to toggle source
# File lib/bio/appl/iprscan/report.rb, line 358
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
method_name() click to toggle source

the analysis method launched.

# File lib/bio/appl/iprscan/report.rb, line 342
def method_name;          @data[:method];          end
query_id() click to toggle source

Id of the input sequence.

# File lib/bio/appl/iprscan/report.rb, line 346
def query_id;        @data[:query_id];        end
status() click to toggle source

Status of the match (T for true / M for marginal).

# File lib/bio/appl/iprscan/report.rb, line 336
def status;          @data[:status];          end