code: def parse_jellyfish_data(self, f):
          
          histogram = {}
          occurence = 0
          for line in f['f']:
              line = line.rstrip('\n')
              occurence = int(line.split(" ")[0])
              count = int(line.split(" ")[1])
              histogram[occurence] = occurence*count
          #delete last occurnece as it is the sum of all kmer occuring more often than it.
          del histogram[occurence]
          #sanity check
          self.max_key  = max(histogram, key=histogram.get)
          self.jellyfish_max_x = max(self.jellyfish_max_x, self.max_key)
          if len(histogram) > 0:
              if f['s_name'] in self.jellyfish_data:
                  log.debug("Duplicate sample name found! Overwriting: {}".format(f['s_name']))
              self.add_data_source(f)
              self.jellyfish_data[f['s_name']] = histogram
docs: Go through the hist file and memorise it