.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_qc_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_plot_qc_example.py: QC Report =========================== Outputs quality control report from given bam files. .. GENERATED FROM PYTHON SOURCE LINES 9-14 Creating QC Report ------------------------ Usually as a first step after receiving bam files, we want to do a quality check and assess our data. This code generates a PDF report of important QC statistics for long read methylation modification bam files .. GENERATED FROM PYTHON SOURCE LINES 14-25 .. code-block:: default import dimelo as dm # first we specify the locations of our bam files in_bam = "../../dimelo/test/data/winnowmap_guppy_merge_subset.bam" sample_name = "test" out_dir = "../../dimelo/dimelo_test" # next we run the "qc_report" function dm.qc_report(in_bam, sample_name, out_dir) # now our output directory that we specified, will have a file called "test_qc_report.pdf" .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Processing reads: 0%| | 0/10 [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_qc_example.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_