# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DESCRIPTION <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-#
+# Find and count MID tags in sequences in the stream.
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
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