.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_paired_strandless_bigwigs.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_paired_strandless_bigwigs.py: ============================== Paired Strandless BigWig Track ============================== Create a :class:`~pygv.tracks.bigwig_track.PairedStrandlessTracks` to show signals on the forward strand (``pl_track``) and the reverse strand (``mn_track``) **in a strandless-manner**. This can be useful for presenting data from TSS-assays like GRO-cap/PRO-cap, NETCAGE, etc and NascentTranscript-assays like PRO-seq, TT-seq, etc. Note: The final signal values will be basepair-wise sum of the values on the forward strand and the absolute values on the reverse strand. .. GENERATED FROM PYTHON SOURCE LINES 13-32 .. image-sg:: /auto_examples/images/sphx_glr_plot_paired_strandless_bigwigs_001.png :alt: chr1 :srcset: /auto_examples/images/sphx_glr_plot_paired_strandless_bigwigs_001.png, /auto_examples/images/sphx_glr_plot_paired_strandless_bigwigs_001_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none array([, ], dtype=object) | .. code-block:: Python from pygv.viewer import GenomeViewer from pygv.tracks.bigwig_track import PairedStrandlessTrack gv = GenomeViewer() # draw positive and negative values independently independent_track = PairedStrandlessTrack( "../examples/data/K562_GROcap_hg38_pl.chr1.bw", "../examples/data/K562_GROcap_hg38_mn.chr1.bw", name="GRO-cap", y_label_rotation="vertical", y_label_ha="center") gv.add_track(independent_track) # Bar plot bar_track = PairedStrandlessTrack( "../examples/data/K562_GROcap_hg38_pl.chr1.bw", "../examples/data/K562_GROcap_hg38_mn.chr1.bw", plot_type="bar", name="Bar", y_label_rotation="vertical", y_label_ha="center") gv.add_track(bar_track) gv.plot("chr1", 201954851, 201955948) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.092 seconds) .. _sphx_glr_download_auto_examples_plot_paired_strandless_bigwigs.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_paired_strandless_bigwigs.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_paired_strandless_bigwigs.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_paired_strandless_bigwigs.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_