def parse_plotEnrichment(self):
        """Find plotEnrichment output."""
        self.deeptools_plotEnrichment = dict()
        for f in self.find_log_files('deeptools/plotEnrichment'):
            parsed_data = self.parsePlotEnrichment(f)
            for k, v in parsed_data.items():
                if k in self.deeptools_plotEnrichment:
                    log.warning("Replacing duplicate sample {}.".format(k))
                self.deeptools_plotEnrichment[k] = v

            if len(parsed_data) > 0:
                self.add_data_source(f, section='plotEnrichment')

        if len(self.deeptools_plotEnrichment) > 0:
            dCounts = OrderedDict()
            dPercents = OrderedDict()
            for sample, v in self.deeptools_plotEnrichment.items():
                dCounts[sample] = OrderedDict()
                dPercents[sample] = OrderedDict()
                for category, v2 in v.items():
                    dCounts[sample][category] = v2['count']
                    dPercents[sample][category] = v2['percent']
            config = {'data_labels': [
                          {'name': 'Counts in features', 'ylab': 'Counts in feature'},
                          {'name': 'Percents in features', 'ylab': 'Percent of reads in feature'}],
                      'id': 'deeptools_enrichment_plot',
                      'title': 'deepTools: Signal enrichment per feature',
                      'ylab': 'Counts in feature',
                      'categories': True,
                      'ymin': 0.0}
            self.add_section(name="Feature enrichment",
                             description="Signal enrichment per feature according to plotEnrichment",
                             anchor="deeptools_enrichment",
                             plot=linegraph.plot([dCounts, dPercents], pconfig=config))

        return len(self.deeptools_plotEnrichment)
Find plotEnrichment output.