code: def parse_logs(self, f):
          
          data = {}
          for l in f.splitlines():
              # catch empty lines
              if len(l) == 0:
                  continue
              s = l.split("\t")
              data_ = []
              # catch lines with descriptive content: "Of pairs used:"
              for i in s[1:]:
                  if len(i) == 0:
                      continue
                  try:
                      i.replace('(', '')
                      i.replace(')', '')
                      i.replace(',', '')
  
                      data_.append(float(i))
                  except ValueError:
                      data_.append(i)
              if len(data_) == 0:
                  continue
              if s[0].startswith('short range'):
                  s[0] = 'short range'
              elif s[0].startswith('same fragment'):
                  s[0] = 'same fragment'
              s[0] = s[0].capitalize()
              data[s[0]] = data_
          return data
docs: Parse a given HiCExplorer log file from hicBuildMatrix.