def bismark_methlyation_chart (self):
        """ Make the methylation plot """

        # Config for the plot
        keys = OrderedDict()
        defaults = {
            'max': 100,
            'min': 0,
            'suffix': '%',
            'decimalPlaces': 1
        }
        keys['percent_cpg_meth'] = dict(defaults, **{ 'title': 'Methylated CpG' })
        keys['percent_chg_meth'] = dict(defaults, **{ 'title': 'Methylated CHG' })
        keys['percent_chh_meth'] = dict(defaults, **{ 'title': 'Methylated CHH' })

        self.add_section (
            name = 'Cytosine Methylation',
            anchor = 'bismark-methylation',
            plot = beeswarm.plot(self.bismark_data['methextract'], keys, {'id': 'bismark-methylation-dp'})
        )
def bismark_methlyation_chart ( self ) : keys = OrderedDict ( ) defaults = { 'max' : 100 , 'min' : 0 , 'suffix' : '%' , 'decimalPlaces' : 1 } keys [ 'percent_cpg_meth' ] = dict ( defaults , ** { 'title' : 'Methylated CpG' } ) keys [ 'percent_chg_meth' ] = dict ( defaults , ** { 'title' : 'Methylated CHG' } ) keys [ 'percent_chh_meth' ] = dict ( defaults , ** { 'title' : 'Methylated CHH' } ) self . add_section ( name = 'Cytosine Methylation' , anchor = 'bismark-methylation' , plot = beeswarm . plot ( self . bismark_data [ 'methextract' ] , keys , { 'id' : 'bismark-methylation-dp' } ) )
Make the methylation plot