code: def hicpro_mapping_chart (self):
          
  
          # Specify the order of the different possible categories
          keys = OrderedDict()
          keys['Full_Alignments_Read']   = { 'color': '#005ce6', 'name': 'Full reads Alignments' }
          keys['Trimmed_Alignments_Read'] = { 'color': '#3385ff', 'name': 'Trimmed reads Alignments' }
          keys['Failed_To_Align_Read']     = { 'color': '#a9a2a2', 'name': 'Failed To Align' }
                                 
          data = [{},{}]
          for s_name in self.hicpro_data:
              for r in [1,2]:
                  data[r-1]['{} [R{}]'.format(s_name, r)] = {
                      'Full_Alignments_Read': self.hicpro_data[s_name]['global_R{}'.format(r)],
                      'Trimmed_Alignments_Read': self.hicpro_data[s_name]['local_R{}'.format(r)],
                      'Failed_To_Align_Read': int(self.hicpro_data[s_name]['total_R{}'.format(r)]) - int(self.hicpro_data[s_name]['mapped_R{}'.format(r)])
                  }
          
          # Config for the plot
          config = {
              'id': 'hicpro_mapping_stats_plot',
              'title': 'HiC-Pro: Mapping Statistics',
              'ylab': '# Reads',
              'ylab': '# Reads: Read 1',
              'data_labels': [
                  {'name': 'Read 1', 'ylab': '# Reads: Read 1'},
                  {'name': 'Read 2', 'ylab': '# Reads: Read 2'}
              ]
          }
  
          return bargraph.plot(data, [keys, keys], config)
docs: Generate the HiC-Pro Aligned reads plot