]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed missing upcase bug in ruby Seq#Digest::each
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sat, 22 Jan 2011 09:28:13 +0000 (09:28 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sat, 22 Jan 2011 09:28:13 +0000 (09:28 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1212 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/Maasha/lib/seq.rb

index 893b854aec918163cf01d473cf256a6229a5968b..c58c8d9e0f7bf195d44cbbf80bb7151581d3e22e 100644 (file)
@@ -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