[% MACRO genome_coverage_on_window_load BLOCK %] ctx2 = document.getElementById("chart-area-genome-coverage-regulatory-build").getContext("2d"); window.myPie = new Chart(ctx2, genome_coverage_regulatory_build_config); [% END %] [% MACRO genome_coverage BLOCK %]

Genome coverage

[% total_covered_by_regulatory_features = regulatory_build_statistics_adaptor.fetch_sum_length_ctcf_binding_site.value + regulatory_build_statistics_adaptor.fetch_sum_length_enhancer.value + regulatory_build_statistics_adaptor.fetch_sum_length_promoter_flanking_region.value + regulatory_build_statistics_adaptor.fetch_sum_length_promoter.value + regulatory_build_statistics_adaptor.fetch_sum_length_transcription_factor_binding_site.value + regulatory_build_statistics_adaptor.fetch_sum_length_open_chromatin.value %]

The regulatory features cover [% round_num( regulatory_build_statistics_adaptor.fetch_regulatory_build_overlap_percent.value ) %]% of the genome. If overlaps were not taken into account, this would be: [% round_num( (100 * total_covered_by_regulatory_features) / ref_length ) %]% of the genome.

Warning: This pie chart does not take overlaps into account. If the genome coverage when taking overlaps into account is significantly different from the one that doesn't, then this pie chart will overstate the percentage of the genome covered in regulatory features. When there are significant amounts of overlap, it is better to use the "Percent of genome covered by feature type" chart below.

[% END %]