From 1e9b8c29f3835262f159e60f49a8f350670bbfa6 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 10 Nov 2010 09:14:01 +0000 Subject: [PATCH] fixed find_mids to locate even low q mids git-svn-id: http://biopieces.googlecode.com/svn/trunk@1160 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/find_mids | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bp_bin/find_mids b/bp_bin/find_mids index 26fbbc6..d987de1 100755 --- a/bp_bin/find_mids +++ b/bp_bin/find_mids @@ -83,8 +83,10 @@ options = bp.parse(ARGV, casts) bp.each_record do |record| if record.has_key? :SEQ - if mid_hash.has_key? record[:SEQ][4 ... 14] - count_hash[record[:SEQ][4 ... 14]] += 1 + tag = record[:SEQ][4 ... 14].upcase + + if mid_hash.has_key? tag + count_hash[tag] += 1 end end bp.puts record -- 2.39.5