Note
Go to the end to download the full example code.
BigBed Track#
Create a BigBed6Track.

/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(
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()
Total running time of the script: (0 minutes 0.131 seconds)