From 99616d0565f042d466224e0da908f439ab798fab Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 9 Dec 2010 15:56:59 +0000 Subject: [PATCH] fixed get_seq in genbank.rb git-svn-id: http://biopieces.googlecode.com/svn/trunk@1180 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/Maasha/lib/genbank.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_ruby/Maasha/lib/genbank.rb b/code_ruby/Maasha/lib/genbank.rb index caf1f45..1cd91eb 100644 --- a/code_ruby/Maasha/lib/genbank.rb +++ b/code_ruby/Maasha/lib/genbank.rb @@ -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 -- 2.39.5