pyranges_plot
Gene visualization package for dataframe objects generated with PyRanges.
PyRanges Plot significantly facilitates genomic data interpretation by providing powerful, customizable, and user-friendly visualizations. It effectively covers the gap between data manipulation and visualization, thereby accelerating the analysis workflow in genomic research.
Overview
The goal is getting a plot displaying a series of genes, transcripts, or any kind of ranges contained in a PyRanges object. It displays the genes' intron-exon structure in its corresponding chromosome, enabling easy visualization of your PyRanges data. The Pyranges version compatible with Pyranges Plot is >= 1.0.0 (find it at https://github.com/pyranges/pyranges_1.x.git).
To obtain a plot, the variable engine must be specified by the user first. This variable
defines the graphic library on which the plots will be based: the valid engine options
are "matplotlib" or "plt" for Matplotlib and "plotly" or "ply" for Plotly.
Every other functionality can be defined during the plot function call. These
functionalities include the ID column to group the intervals belonging to the same item
(transcript, gene, protein...), items disposition, coloring criteria and palette, labels
and output form among others. The input for the plot fucntion is 1 or more PyRanges
objects, and the output is by default an interactive plot with zooming options and tooltip
information, but if desired the plot can be directly exported to a png or pdf file.
Installation
PyRanges-Plot can be installed using pip. To install all dependencies in order to be able to
use all the functionalities of the package and both engines, the [all] option must be
specified:
pip install pyranges-plot[all]
If the user wishes to use only one of the engines, the installation of all dependencies can be avoided by using the engine-specific installation options:
# For matplotlib
pip install pyranges-plot[matplotlib]
# For plotly
pip install pyranges-plot[plotly]
Note that the minimal installation by pip install pyranges-plot is not able to produce plots
since the graphical dependencies are not installed.
Documentation
Pyranges Plot documentation and tutorial can be found at https://pyranges-plot.readthedocs.io/.
Metadata
Release files for pyranges-plot 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyranges_plot-0.1.6.tar.gz | 7.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyranges_plot-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 MB
Release files / pyranges_plot-0.1.6.tar.gz
| Download URL | pyranges_plot-0.1.6.tar.gz |
|---|---|
| Size | 7.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24cc663e5db3257efbe7aa9a06e125e57681eb934171e2e46359d49329718bfe
|
|
BLAKE2b-256 checksum How to use checksums |
fb7f5a1903403cc1ca175284a8a718a9071fa66a5940668a4a9f72e8c965e064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Aug 20, 2025.
Transparency logRelease files / pyranges_plot-0.1.6-py3-none-any.whl
| Download URL | pyranges_plot-0.1.6-py3-none-any.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b756b73484587d0d4c5a04dd60e7bea84084cbd8b3349a7ef8ffcbfec90275a9
|
|
BLAKE2b-256 checksum How to use checksums |
bc259f68473ba41864f555899eb0a924d31392f2a7e0b587956f6bfd8c7213bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Aug 20, 2025.
Transparency log