code: def sortmerna_detailed_barplot (self):
          keys = OrderedDict()
          metrics = set()
          for sample in self.sortmerna:
              for key in self.sortmerna[sample]:
                  if not key in ["total", "rRNA", "non_rRNA"] and not "_pct" in key:
                      metrics.add(key)
          for key in metrics:
              keys[key] = { 'name': key.replace("_count","") }
          pconfig = {
              'id': 'sortmerna-detailed-plot',
              'title': 'SortMeRNA: Hit Counts',
              'ylab': 'Reads'
          }
          self.add_section( plot = bargraph.plot(self.sortmerna, keys, pconfig) )