Class: Bio::HMMER::HMMER3
- Inherits:
-
Object
- Object
- Bio::HMMER::HMMER3
- Defined in:
- lib/bio/appl/hmmer/hmmer3/tabular_report.rb,
lib/bio/appl/hmmer/hmmer3/default_report.rb
Overview
Description
Parser class for hmmsearch and hmmscan in the HMMER 3 package. See README of this biogem for more information.
Defined Under Namespace
Classes: DefaultHMMSearchReport, Hit, PerDomainHit, PerSequenceHit, TabularReport
Class Method Summary collapse
Class Method Details
.reports(multiple_report_text, options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/bio/appl/hmmer/hmmer3/default_report.rb', line 9 def self.reports(multiple_report_text, ={}) if [:domtblout, :tblout].include?([:format]) return TabularReport.new(multiple_report_text, [: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 |