code: def parse_leehom_logs(self, f):
          
          regexes = {
              'total': r"Total reads[\s\:]+(\d+)",
              'merged_trimming': r"Merged \(trimming\)\s+(\d+)",
              'merged_overlap': r"Merged \(overlap\)\s+(\d+)",
              'kept': r"Kept PE/SR\s+(\d+)",
              'trimmed': r"Trimmed SR\s+(\d+)",
              'adapter_dimers_chimeras': r"Adapter dimers/chimeras\s+(\d+)",
              'failed_key': r"Failed Key\s+(\d+)"
          }
          parsed_data = dict()
          for l in f['f']:
              # Search regexes for overview stats
              for k, r in regexes.items():
                  match = re.search(r, l)
                  if match:
                      parsed_data[k] = int(match.group(1))
          return parsed_data
docs: Go through log file looking for leehom output