]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/find_mids
added find_mids biopiece tests
[biopieces.git] / bp_bin / find_mids
index de00e84acaedeb8ef8c3c1736873c07e076b5d9c..c5cf7201f370117048390d03398ef3ba5e9aedc6 100755 (executable)
@@ -24,7 +24,7 @@
 
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DESCRIPTION <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
-#
+# Find and count MID tags in sequences in the stream.
 
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
@@ -91,7 +91,7 @@ mids.each_with_index do |mid, i|
   if count_hash[mid] > 0
     record = {}
     record[:REC_TYPE]  = "MID"
-    record[:MID_NUM]   = i
+    record[:MID_NUM]   = i + 1
     record[:MID_COUNT] = count_hash[mid]
     record[:MID_SEQ]   = mid
     bp.puts record