]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed critical flaw in find_adaptor
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 23 May 2011 15:24:40 +0000 (15:24 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 23 May 2011 15:24:40 +0000 (15:24 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1416 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/find_adaptor

index 53e453a147fd62414bfa1e4a9af96e8f27bc2326..15371bdd03045ffdbd64159264c24a6d0eebc2aa 100755 (executable)
@@ -68,7 +68,7 @@ class PatScan
           name  = $1.to_i
           start = $2.to_i - 1
           stop  = $3.to_i - 1
-          matches[name] = [start, stop - start + 1]
+          matches[name] = [start, stop - start + 1] unless matches.has_key? name
         else
           raise "Failed to parse sequence name: #{entry.seq_name}"
         end