code: def parse_hicpro_stats(self, f, rsection):
          
          s_name = self.clean_s_name(os.path.basename(f['root']), os.path.dirname(f['root']))
  
          if s_name not in self.hicpro_data.keys():
              self.hicpro_data[s_name] = {}
  
          self.add_data_source(f, s_name, section=rsection)
          for l in f['f'].splitlines():
              if not l.startswith('#'):
                  s = l.split("\t")
                  if s[0] in self.hicpro_data[s_name]:
                      log.debug("Duplicated keys found! Overwriting: {}".format(s[0]))
                  self.hicpro_data[s_name][s[0]] = int(s[1])
docs: Parse a HiC-Pro stat file