code: def parse_restriction_dist(self, f):
          
          parsed_data = dict()
          firstline = True
          for l in f['f']:
              if firstline:    #skip first line
                  firstline = False
                  continue
              s = l.split("\t")
              if len(s) > 1:
                  nuc = float(s[0].strip())
                  v1 = float(s[1].strip())
                  v2 = float(s[2].strip())
                  v = v1 + v2
                  #parsed_data.update({nuc:v1})
                  #parsed_data.update({nuc:v2})
                  parsed_data.update({nuc:v})
          return parsed_data
docs: Parse HOMER tagdirectory petagRestrictionDistribution file.