[BioRuby-cvs] bioruby/lib/bio/appl/blast report.rb,1.7,1.8

Naohisa Goto ngoto at pub.open-bio.org
Fri Sep 9 11:15:53 EDT 2005


Update of /home/repository/bioruby/bioruby/lib/bio/appl/blast
In directory pub.open-bio.org:/tmp/cvs-serv21369/lib/bio/appl/blast

Modified Files:
	report.rb 
Log Message:
* moved Bio::Blast.reports method from blast/report.rb to blast.rb for autoload.
* added "require 'bio/appl/blast'" in blast/report.rb.


Index: report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/blast/report.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** report.rb	8 Sep 2005 01:22:08 -0000	1.7
--- report.rb	9 Sep 2005 15:15:51 -0000	1.8
***************
*** 21,24 ****
--- 21,25 ----
  #
  
+ require 'bio/appl/blast'
  require 'bio/appl/blast/xmlparser'
  require 'bio/appl/blast/rexml'
***************
*** 27,45 ****
  module Bio
    class Blast
- 
-     def self.reports(input, parser = nil)
-       ary = []
-       input.each("</BlastOutput>\n") do |xml|
-         xml.sub!(/[^<]*(<?)/, '\1')		# skip before <?xml> tag
-         next if xml.empty?			# skip trailing no hits
-         if block_given?
-           yield Report.new(xml, parser)
-         else
-           ary << Report.new(xml, parser)
-         end
-       end
-       return ary
-     end
- 
  
      class Report
--- 28,31 ----



More information about the bioruby-cvs mailing list