.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_allowed_feature_lanes.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_allowed_feature_lanes.py: ========================================== Adjust the number of feature lanes allowed ========================================== .. GENERATED FROM PYTHON SOURCE LINES 7-36 .. image-sg:: /auto_examples/images/sphx_glr_plot_allowed_feature_lanes_001.png :alt: chr1 :srcset: /auto_examples/images/sphx_glr_plot_allowed_feature_lanes_001.png, /auto_examples/images/sphx_glr_plot_allowed_feature_lanes_001_2_00x.png 2.00x :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from pygv.viewer import GenomeViewer from pygv.tracks.bed_track import BedTrack from pygv.tracks.bigwig_track import PairedStrandSpecificTracks gv = GenomeViewer() unrestricted_track = BedTrack( "../examples/data/gencodeV24.sub.bed.gz", name="unlimited", height=1/2, line_width=0.5, show_name=True, y_label_rotation="vertical", y_label_ha="center") gv.add_track(unrestricted_track) max_6lanes_track = BedTrack( "../examples/data/gencodeV24.sub.bed.gz", name="max 6", height=1/2, allowed_feature_lanes=6, line_width=0.5, show_name=True, y_label_rotation="vertical", y_label_ha="center") gv.add_track(max_6lanes_track) max_2lanes_track = BedTrack( "../examples/data/gencodeV24.sub.bed.gz", name="max 2", height=1/2, allowed_feature_lanes=2, line_width=0.5, show_name=True, y_label_rotation="vertical", y_label_ha="center") gv.add_track(max_2lanes_track) tss_track = PairedStrandSpecificTracks( "../examples/data/K562_GROcap_hg38_pl.chr1.bw", "../examples/data/K562_GROcap_hg38_mn.chr1.bw", draw_y_independently=True, name="TSS", y_label_rotation="vertical", y_label_ha="center") gv.add_track(tss_track) gv.plot("chr1", 155135244, 155136169, height_scale_factor=0.4) plt.tight_layout() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.530 seconds) .. _sphx_glr_download_auto_examples_plot_allowed_feature_lanes.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_allowed_feature_lanes.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_allowed_feature_lanes.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_allowed_feature_lanes.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_