class SequenceServer::BLAST::Report

Captures results of a BLAST search.

A report is constructed from a search id. Search id is simply the basename of the temporary file that holds BLAST results in binary BLAST archive format.

For a given search id, result is obtained in XML format using the Formatter class, parsed into a simple intermediate representation (Array of values and Arrays) and information extracted from the intermediate representation (ir).

Attributes

querydb[R]
search_id[R]

Public Class Methods

new(search_id, databases = nil) click to toggle source

Expects a BLAST search id and an Array of Database objects that were used to BLAST. The second argument being optional to aid test suite.

# File lib/sequenceserver/blast/report.rb, line 16
def initialize(search_id, databases = nil)
  @search_id = search_id
  @querydb = Array databases
  @queries = []

  generate
end