code: def parse_findPeaks(self, f):
          
          parsed_data = dict()
          s_name = f['s_name']
          for l in f['f']:
              # Start of data
              if l.strip() and not l.strip().startswith('#'):
                  break
              # Automatically parse header lines by = symbol
              s = l[2:].split('=')
              if len(s) > 1:
                  k = s[0].strip().replace(' ','_').lower()
                  v = s[1].strip().replace('%','')
                  try:
                      parsed_data[k] = float(v)
                  except ValueError:
                      parsed_data[k] = v
                  if k == 'tag_directory':
                      s_name = self.clean_s_name(os.path.basename(v), os.path.dirname(v))
  
          if len(parsed_data) > 0:
              if s_name in self.homer_findpeaks:
                  log.debug("Duplicate sample name found in {}! Overwriting: {}".format(f['fn'], s_name))
              self.add_data_source(f, s_name, section='findPeaks')
              self.homer_findpeaks[s_name] = parsed_data
docs: Parse HOMER findPeaks file headers.