[BioRuby-cvs] bioruby/lib/bio/appl/blast format0.rb,1.26,1.27
Naohisa Goto
ngoto at dev.open-bio.org
Tue Apr 1 02:31:37 EDT 2008
Update of /home/repository/bioruby/bioruby/lib/bio/appl/blast
In directory dev.open-bio.org:/tmp/cvs-serv2121/lib/bio/appl/blast
Modified Files:
format0.rb
Log Message:
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.27
diff -C2 -d -r1.26 -r1.27
*** format0.rb 12 Feb 2008 02:13:31 -0000 1.26
--- format0.rb 1 Apr 2008 06:31:35 -0000 1.27
***************
*** 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