From: martinahansen Date: Sat, 22 Jan 2011 09:28:13 +0000 (+0000) Subject: fixed missing upcase bug in ruby Seq#Digest::each X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3dde5769fd66649d8f23a4861cf819c62ab42efe;p=biopieces.git fixed missing upcase bug in ruby Seq#Digest::each git-svn-id: http://biopieces.googlecode.com/svn/trunk@1212 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_ruby/Maasha/lib/seq.rb b/code_ruby/Maasha/lib/seq.rb index 893b854..c58c8d9 100644 --- a/code_ruby/Maasha/lib/seq.rb +++ b/code_ruby/Maasha/lib/seq.rb @@ -269,7 +269,7 @@ class Digest # Method to get the next digestion product from a sequence. def each - @seq.seq.scan @pattern do + @seq.seq.upcase.scan @pattern do pos = $`.length + @cut_pos - 1 if pos >= 0 and pos < @seq.seq.length - 2