code: def lgdistplot(self,dict_to_use,orientation):
          
  
          data = dict()
          for s_name in dict_to_use:
              try:
                  data[s_name] = {int(d): int (dict_to_use[s_name][d]) for d in dict_to_use[s_name]}
              except KeyError:
                  pass
          if len(data) == 0:
              log.debug('No valid data for forward read lgdist input!')
              return None
  
          config = {
              'id': 'length-distribution-{}'.format(orientation),
              'title': 'DamageProfiler: Read length distribution: {} '.format(orientation),
              'ylab': 'Number of reads',
              'xlab': 'Readlength (bp)',
              'xDecimals': False,
              'tt_label': '{point.y} reads of length {point.x}',
              'ymin': 0,
              'xmin': 0
          }
          return linegraph.plot(data,config)
docs: Generate a read length distribution plot