.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/enrichment_multi_bed_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_enrichment_multi_bed_example.py: Enrichment Plot Comparison Across BEDs ====================================== Plot overall fraction of methylated bases within multiple sets of regions of interest specified by bed files for a single sample. .. GENERATED FROM PYTHON SOURCE LINES 9-10 Create barplot comparing methylation levels in single sample across multiple regions of interest defined in bed files. .. GENERATED FROM PYTHON SOURCE LINES 12-14 1. Python option ---------------- .. GENERATED FROM PYTHON SOURCE LINES 14-22 .. code-block:: default import dimelo as dm bam = "deep_ctcf_mod_mappings_merge.sorted.bam" beds = ["q10.150.slop.bed", "q10nopeak.bed"] sampleNames = ["chip_peak", "not_chip_peak"] outDir = "./out" dm.plot_enrichment(bam, sampleNames, beds, "A", outDir, threshA=190) .. GENERATED FROM PYTHON SOURCE LINES 23-26 2. Command line option ---------------------- ``dimelo-plot-enrichment -f deep_ctcf_mod_mappings_merge.sorted.bam -s chip_peak not_chip_peak -b q10.150.slop.bed q10nopeak.bed -m A -o ./out -A 190`` .. GENERATED FROM PYTHON SOURCE LINES 28-31 Output ---------------------- .. figure:: ../auto_examples/images/sample_deep_ctcf_mod_mappings_merge.sorted_A_enrichment_barplot.png .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_enrichment_multi_bed_example.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: enrichment_multi_bed_example.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: enrichment_multi_bed_example.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_