[BioRuby-cvs] bioruby/lib/bio/appl/blast format0.rb,1.26,1.26.2.1

Naohisa Goto ngoto at dev.open-bio.org
Mon May 12 09:52:18 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	format0.rb 
Log Message:
same changes as 1.26 => 1.27 in trunk: Fixed a bug when a null line is inserted after database title in some cases, reported by Tomoaki NISHIYAMA.


Index: format0.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/blast/format0.rb,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -C2 -d -r1.26 -r1.26.2.1
*** format0.rb	12 Feb 2008 02:13:31 -0000	1.26
--- format0.rb	12 May 2008 09:52:15 -0000	1.26.2.1
***************
*** 294,297 ****
--- 294,302 ----
            @f0query = data.shift
            @f0database = data.shift
+           # In special case, a void line is inserted after database name.
+           if /\A +[\d\,]+ +sequences\; +[\d\,]+ total +letters\s*\z/ =~ data[0] then
+             @f0database.concat "\n"
+             @f0database.concat data.shift
+           end
          end
  




More information about the bioruby-cvs mailing list