Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Python Genome Viewer (PyGV)

GitHub CI Read the Docs

PyGV, short for Python Genome Viewer, is a powerful and user-friendly Python package designed to empower researchers and genomics enthusiasts with the tools they need to create publication-ready, highly customizable genomic visualizations seamlessly integrated into their daily workflows.

Key Features and Advantages

  • Everything in Python: PyGV allows you to effortlessly configure genomic tracks directly within Python code. Each track is represented as a Python class, making it easy to fine-tune track properties, layouts, and styles to suit your specific research needs. As PyGV is built on top of Matplotlib, you can further harness the familiar syntax used for Matplotlib, giving you the power to customize your genomic visualizations to the fullest extent.
  • Flexible data filtering: Users can define what to plot by applying customized filters during signal reading. For example, when plotting alignments, users can use Python's lambda expressions to selectively display specific reads, such as the first read or reads mapped to the forward strand. This level of customization extends to genome annotations as well, allowing users to effortlessly select which features (e.g. transcripts) to display with just one line of code. This capability is useful when dealing with extensive genomic data, enabling researchers to focus on the specific elements relevant to their analyses without being overwhelmed by unnecessary details.
  • Rich Genomic Data Support: PyGV offers support for a wide range of genomic data formats, allowing you to visualize genes, regulatory elements, sequencing alignments, genomic interactions, and other genomics features in the way that best serves your research. See a gallery of all supported tracks here.
  • High-resolution Figures: PyGV is committed to producing high-quality figures. Our goal is to minimize the additional effort you might otherwise spend adjusting fonts, colors, and other details in software like Adobe Illustrator. With PyGV, you can create polished, high-quality figures directly from your genomic visualizations, saving you time and ensuring that your visualizations are ready to meet the different standards of publication.
  • Reproducibility and Collaboration: With PyGV, creating and sharing reproducible genomic visualizations becomes a straightforward task, essential for research collaboration and documentation.

Get Started

Install PyGV with pip:

pip install GenomeViewer

Now let's have some fun:

from pygv.viewer import GenomeViewer
from pygv.tracks import gtf_track

gv = GenomeViewer()
gencode_track = gtf_track.GtfTrack(
    "~/gencode.v34lift37.annotation.sorted.gtf.gz",
    name="GENCODE", show_genes=True, show_transcript_id=True,
    filters=lambda x: x.transcript_id in {"ENST00000332995.11_1", "ENSG00000112137.17_4",
                                          "ENST00000379350.5_1", "ENST00000379335.7_1"},
    annotation_formatter=lambda x: x.split(".")[0]
)
gv.add_track(gencode_track)
gv.plot("chr6", 12714999, 13292716)
plt.show()

Metadata

Release files for GenomeViewer 0.2.0rc3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GenomeViewer 0.2.0rc3
File Size Uploaded Provenance Actions
genomeviewer-0.2.0rc3.tar.gz 83.7 kB With provenance Details for genomeviewer-0.2.0rc3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for GenomeViewer 0.2.0rc3
File Interpreter ABI Platform Actions
genomeviewer-0.2.0rc3-py3-none-any.whl Python 3 none any Details for genomeviewer-0.2.0rc3-py3-none-any.whl

Total release size: 175.9 kB

Release files / genomeviewer-0.2.0rc3.tar.gz

Download URL genomeviewer-0.2.0rc3.tar.gz
Size 83.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9f91ce70ed7a7d4b5e503631bc18e6aedd5793e14254e93af87e13f3f4d6ba02
BLAKE2b-256 checksum
How to use checksums
5a31e6228a802cd041f9c54f060ada17c6b5eee18382cff7133bb8278f94fe3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / genomeviewer-0.2.0rc3-py3-none-any.whl

Download URL genomeviewer-0.2.0rc3-py3-none-any.whl
Size 92.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b6ea885fafc58b8874169751597a3f3940bc1c5b61a7eef25486253124a402f
BLAKE2b-256 checksum
How to use checksums
5787dcaf39a29118489ac6120c3d9696db198c0233cb49d432e7fe10d38a683c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Security for GenomeViewer 0.2.0rc3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for genomeviewer-0.2.0rc3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page