class Bio::HMMER::HMMER3

Description

Parser class for hmmsearch and hmmscan in the HMMER 3 package. See README of this biogem for more information.

Public Class Methods

reports(multiple_report_text, options={}) { |default_hmm_search_report| ... } click to toggle source
# File lib/bio/appl/hmmer/hmmer3/default_report.rb, line 9
def self.reports(multiple_report_text, options={})
  if [:domtblout, :tblout].include?(options[:format])
    return TabularReport.new(multiple_report_text, options[:format])
  else
    ary = []
    multiple_report_text.each_line("\n//\n") do |report|
      if block_given?
        yield DefaultHMMSearchReport.new(report)
      else
        ary << DefaultHMMSearchReport.new(report)
      end
    end
    return ary
  end
end