]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed get_seq in genbank.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 9 Dec 2010 15:56:59 +0000 (15:56 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 9 Dec 2010 15:56:59 +0000 (15:56 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1180 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/Maasha/lib/genbank.rb

index caf1f45459ea8c68b64e10baca60b7e5a1ebe530..1cd91ebabb57575fbeb6f7de4441794208af12dc 100644 (file)
@@ -113,7 +113,7 @@ class Genbank
     seq = Seq.new(nil, "", "dna")
     i   = @entry.size
 
-    while @entry[i] and @entry[i] !~ /^ORIGIN/
+    while @entry[i] and @entry[i] !~ /^[A-Z]/
                        if @entry[i] =~ /^\s{0,8}\d+(.+)/
                                seq.seq << $1.delete(" ")
                        end