[BioRuby-cvs] bioruby/lib/bio/appl/bl2seq report.rb,1.2,1.3

Katayama Toshiaki k at pub.open-bio.org
Wed Sep 7 21:22:10 EDT 2005


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

Modified Files:
	report.rb 
Log Message:
* expanded tab at the line head


Index: report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/bl2seq/report.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** report.rb	10 Aug 2005 12:55:41 -0000	1.2
--- report.rb	8 Sep 2005 01:22:08 -0000	1.3
***************
*** 37,91 ****
        undef format0_parse_header
        undef program, version, version_number, version_date,
! 	message, converged?, reference, db
  
        def format0_split_headers(data)
! 	@f0query = data.shift
        end
  
        def format0_split_search(data)
! 	iterations = []
! 	while r = data[0] and /^\>/ =~ r
! 	  iterations << Iteration.new(data)
! 	end
! 	if iterations.size <= 0 then
! 	  iterations << Iteration.new(data)
! 	end
! 	iterations
        end
  
        class F0dbstat < Bio::Blast::Default::Report::F0dbstat
! 	def db_num
! 	  unless defined?(@db_num)
! 	    parse_params
! 	    @db_num = @hash['Number of Sequences'].to_i
! 	  end
! 	  @db_num
! 	end
  
! 	def db_len
! 	  unless defined?(@db_len)
! 	    parse_params
! 	    @db_len = @hash['length of database'].to_i
! 	  end
! 	  @db_len
! 	end
        end #class F0dbstat
  
        class Iteration < Bio::Blast::Default::Report::Iteration
! 	def initialize(data)
! 	  @f0stat = []
! 	  @f0dbstat = nil
! 	  @hits = []
! 	  @num = 1
! 	  while r = data[0] and /^\>/ =~ r
! 	    @hits << Hit.new(data)
! 	  end
! 	end
  
! 	def hits; @hits; end
! 	undef message, pattern_in_database, f0message, f0hitlist,
! 	  pattern, pattern_positions, hits_found_again,
! 	  hits_newly_found, hits_for_pattern, parse_hitlist,
! 	  converged?
        end #class Iteration
  
--- 37,91 ----
        undef format0_parse_header
        undef program, version, version_number, version_date,
!         message, converged?, reference, db
  
        def format0_split_headers(data)
!         @f0query = data.shift
        end
  
        def format0_split_search(data)
!         iterations = []
!         while r = data[0] and /^\>/ =~ r
!           iterations << Iteration.new(data)
!         end
!         if iterations.size <= 0 then
!           iterations << Iteration.new(data)
!         end
!         iterations
        end
  
        class F0dbstat < Bio::Blast::Default::Report::F0dbstat
!         def db_num
!           unless defined?(@db_num)
!             parse_params
!             @db_num = @hash['Number of Sequences'].to_i
!           end
!           @db_num
!         end
  
!         def db_len
!           unless defined?(@db_len)
!             parse_params
!             @db_len = @hash['length of database'].to_i
!           end
!           @db_len
!         end
        end #class F0dbstat
  
        class Iteration < Bio::Blast::Default::Report::Iteration
!         def initialize(data)
!           @f0stat = []
!           @f0dbstat = nil
!           @hits = []
!           @num = 1
!           while r = data[0] and /^\>/ =~ r
!             @hits << Hit.new(data)
!           end
!         end
  
!         def hits; @hits; end
!         undef message, pattern_in_database, f0message, f0hitlist,
!           pattern, pattern_positions, hits_found_again,
!           hits_newly_found, hits_for_pattern, parse_hitlist,
!           converged?
        end #class Iteration
  



More information about the bioruby-cvs mailing list