.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_bigbed.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_bigbed.py: ============ BigBed Track ============ Create a :class:`~pygv.tracks.bigbed_track.BigBed6Track`. .. GENERATED FROM PYTHON SOURCE LINES 8-23 .. image-sg:: /auto_examples/images/sphx_glr_plot_bigbed_001.png :alt: chr14 :srcset: /auto_examples/images/sphx_glr_plot_bigbed_001.png, /auto_examples/images/sphx_glr_plot_bigbed_001_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/pygv/checkouts/latest/pygv/tracks/bigbed_track.py:259: RuntimeWarning: Input bigBed should only have 6 fields while 10 fields are observed. Only the first 6 are used. warnings.warn( | .. code-block:: Python import matplotlib.pyplot as plt from pygv.viewer import GenomeViewer from pygv.tracks.bigbed_track import BigBed6Track gv = GenomeViewer() track = BigBed6Track( "../examples/data/test.bigBed", name="With names", ) gv.add_track(track) no_name_track = BigBed6Track( "../examples/data/test.bigBed", name="No names", ) no_name_track.show_name = False gv.add_track(no_name_track) gv.plot("chr14", 100235930, 100242295) plt.tight_layout() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.131 seconds) .. _sphx_glr_download_auto_examples_plot_bigbed.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_bigbed.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_bigbed.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_bigbed.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_