]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed find_mids to locate even low q mids
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 10 Nov 2010 09:14:01 +0000 (09:14 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 10 Nov 2010 09:14:01 +0000 (09:14 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1160 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/find_mids

index 26fbbc6991a73cdab66996e2b568f3e59dd470b6..d987de13744f16ac85479741c1f59c48fa75b0fc 100755 (executable)
@@ -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