]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/lib/maasha/seq.rb
fixed another bug in find orfs
[biopieces.git] / code_ruby / lib / maasha / seq.rb
index 62170b6ec4104b9165afc2037c0d736ebe17ac17..92d33982e90bdfbab281e9a4249e06b1b4d96fe6 100644 (file)
@@ -536,7 +536,7 @@ class Seq
     if pick_longest
       orf_hash = {}
 
-      orfs.each { |orf| orf_hash[orf.last] = orf }
+      orfs.each { |orf| orf_hash[orf.last] = orf unless orf_hash[orf.last] }
 
       orfs = orf_hash.values
     end