[BioRuby-cvs] bioruby/lib/bio alignment.rb,1.18,1.19

Naohisa Goto ngoto at dev.open-bio.org
Thu Dec 14 14:11:56 UTC 2006


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

Modified Files:
	alignment.rb 
Log Message:
fixed mistaken amino distingushing routine in match_line.


Index: alignment.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/alignment.rb,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** alignment.rb	14 Dec 2006 12:39:45 -0000	1.18
--- alignment.rb	14 Dec 2006 14:11:54 -0000	1.19
***************
*** 623,630 ****
            elsif seqclass == Bio::Sequence::NA then
              amino = false
-           elsif self.each_seq { |x| /[EFILPQ]/i =~ x } then
-             amino = true
            else
              amino = nil
            end
          end
--- 623,634 ----
            elsif seqclass == Bio::Sequence::NA then
              amino = false
            else
              amino = nil
+             self.each_seq do |x|
+               if /[EFILPQ]/i =~ x
+                 amino = true
+                 break
+               end
+             end
            end
          end




More information about the bioruby-cvs mailing list