def slamdunkUtrRatesPlot (self):
        """ Generate the UTR rates plot """

        cats = OrderedDict()
        keys = ['T>C', 'A>T', 'A>G', 'A>C', 'T>A', 'T>G', 'G>A', 'G>T', 'G>C', 'C>A', 'C>T', 'C>G']
        for i, v in enumerate(keys):
            cats[v] = { 'color': self.plot_cols[i] }

        pconfig = {
            'id': 'slamdunk_utrratesplot',
            'title': 'Slamdunk: Overall conversion rates per UTR',
            'cpswitch': False,
            'cpswitch_c_active': False,
            'ylab': 'Number of conversions',
            'stacking': 'normal',
            'tt_decimals': 2,
            'tt_suffix': '%',
            'tt_percentages': False,
            'hide_zero_cats': False
        }

        self.add_section (
            name = 'Conversion rates per UTR',
            anchor = 'slamdunk_utr_rates',
            description = """This plot shows the individual conversion rates for all UTRs
                        (see the <a href="http://t-neumann.github.io/slamdunk/docs.html#utrrates" target="_blank">slamdunk docs</a>).""",
            plot = bargraph.plot(self.utrates_data, cats, pconfig)
        )
def slamdunkUtrRatesPlot ( self ) : cats = OrderedDict ( ) keys = [ 'T>C' , 'A>T' , 'A>G' , 'A>C' , 'T>A' , 'T>G' , 'G>A' , 'G>T' , 'G>C' , 'C>A' , 'C>T' , 'C>G' ] for i , v in enumerate ( keys ) : cats [ v ] = { 'color' : self . plot_cols [ i ] } pconfig = { 'id' : 'slamdunk_utrratesplot' , 'title' : 'Slamdunk: Overall conversion rates per UTR' , 'cpswitch' : False , 'cpswitch_c_active' : False , 'ylab' : 'Number of conversions' , 'stacking' : 'normal' , 'tt_decimals' : 2 , 'tt_suffix' : '%' , 'tt_percentages' : False , 'hide_zero_cats' : False } self . add_section ( name = 'Conversion rates per UTR' , anchor = 'slamdunk_utr_rates' , description = """This plot shows the individual conversion rates for all UTRs
                        (see the <a href="http://t-neumann.github.io/slamdunk/docs.html#utrrates" target="_blank">slamdunk docs</a>).""" , plot = bargraph . plot ( self . utrates_data , cats , pconfig ) )
Generate the UTR rates plot