From dc75d5a7960d8b3d4b315a19b5d187fd56e1eb75 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Mon, 23 May 2011 15:24:40 +0000 Subject: [PATCH 1/1] fixed critical flaw in find_adaptor git-svn-id: http://biopieces.googlecode.com/svn/trunk@1416 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/find_adaptor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp_bin/find_adaptor b/bp_bin/find_adaptor index 53e453a..15371bd 100755 --- a/bp_bin/find_adaptor +++ b/bp_bin/find_adaptor @@ -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 -- 2.39.2