]> git.donarmstrong.com Git - biopieces.git/commitdiff
made orf finder case insensitive
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 13 Jul 2012 13:54:49 +0000 (13:54 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 13 Jul 2012 13:54:49 +0000 (13:54 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1868 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/seq.rb

index 8592cdc3348e1a9ffb71128d640f5c6da8f0e7ec..b5f07f610d17a9ac1d3704bd8f545ac07890702f 100644 (file)
@@ -512,8 +512,8 @@ class Seq
     orfs    = []
     pos_beg = 0
 
-    regex_start = Regexp.new(start_codons.join('|'))
-    regex_stop  = Regexp.new(stop_codons.join('|'))
+    regex_start = Regexp.new(start_codons.join('|'), true)
+    regex_stop  = Regexp.new(stop_codons.join('|'), true)
 
     while pos_beg and pos_beg < self.length - size_min
       if pos_beg = self.seq.index(regex_start, pos_beg)