[BioRuby-cvs] bioruby/lib/bio/appl/psort report.rb,1.11,1.12

Mitsuteru C. Nakao nakao at pub.open-bio.org
Thu Nov 3 05:51:01 EST 2005


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

Modified Files:
	report.rb 
Log Message:
* Fixed typo bugs.


Index: report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/psort/report.rb,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** report.rb	1 Nov 2005 05:15:15 -0000	1.11
--- report.rb	3 Nov 2005 10:50:58 -0000	1.12
***************
*** 53,61 ****
            rpt = self.new
            rpt.raw = output_report
!           query_info = str.scan(/^Query Information\n\n(.+?)\n\n/m)[0][0].split(/\n/)
!           result_info = str.scan(/^Result Information\n\n(.+?)\n\n\*/m)[0][0]
!           step1 = str.scan(/^\*\*\* Reasoning Step: 1\n\n(.+?)\n\n/m)[0][0]
!           step2 = str.scan(/^\*\*\* Reasoning Step: 2\n\n(.+?)\n\n/m)[0][0]
!           final_result = str.scan(/\n\n----- Final Results -----\n\n(.+?)\n\n\n/m)[0][0]
  
            rpt.entry_id = query_info[2].scan(/^>(\S+) */).to_s
--- 53,61 ----
            rpt = self.new
            rpt.raw = output_report
!           query_info = output_report.scan(/^Query Information\n\n(.+?)\n\n/m)[0][0].split(/\n/)
!           result_info = output_report.scan(/^Result Information\n\n(.+?)\n\n\*/m)[0][0]
!           step1 = output_report.scan(/^\*\*\* Reasoning Step: 1\n\n(.+?)\n\n/m)[0][0]
!           step2 = output_report.scan(/^\*\*\* Reasoning Step: 2\n\n(.+?)\n\n/m)[0][0]
!           final_result = output_report.scan(/\n\n----- Final Results -----\n\n(.+?)\n\n\n/m)[0][0]
  
            rpt.entry_id = query_info[2].scan(/^>(\S+) */).to_s
***************
*** 408,412 ****
          def self.divent(entry)
            boundary = entry.index(BOUNDARY)
!           return ent[0..(boundary - 1)], ent[(boundary + 2)..ent.length]
          end
  
--- 408,412 ----
          def self.divent(entry)
            boundary = entry.index(BOUNDARY)
!           return entry[0..(boundary - 1)], entry[(boundary + 2)..(entry.length)]
          end
  



More information about the bioruby-cvs mailing list