[BioRuby-cvs] bioruby/lib/bio/sequence common.rb,1.6.2.1,1.6.2.2

Naohisa Goto ngoto at dev.open-bio.org
Tue Mar 4 11:14:05 UTC 2008


Update of /home/repository/bioruby/bioruby/lib/bio/sequence
In directory dev.open-bio.org:/tmp/cvs-serv7753/lib/bio/sequence

Modified Files:
      Tag: BRANCH-biohackathon2008
	common.rb 
Log Message:
format_embl is moved to lib/bio/embl/format_embl.rb 


Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/common.rb,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C2 -d -r1.6.2.1 -r1.6.2.2
*** common.rb	20 Feb 2008 09:56:22 -0000	1.6.2.1
--- common.rb	4 Mar 2008 11:14:03 -0000	1.6.2.2
***************
*** 67,87 ****
    end
    
-   def format_embl
-     output_lines = Array.new
-     counter = 0
-     remainder = self.window_search(60,60) do |subseq|
-       counter += 60
-       subseq.gsub!(/(.{10})/, '\1 ')
-       output_lines.push(' '*5 + subseq + counter.to_s.rjust(9))
-     end
-     counter += remainder.length
-     remainder = (remainder.to_s + ' '*(60-remainder.length))
-     remainder.gsub!(/(.{10})/, '\1 ')
-     output_lines.push(' '*5 + remainder + counter.to_s.rjust(9))
-     return output_lines.join("\n")
-   end
- 
- 
- 
    # Normalize the current sequence, removing all whitespace and 
    # transforming all positions to uppercase if the sequence is AA or
--- 67,70 ----




More information about the bioruby-cvs mailing list