Skip to main content

'Genomic intervals data visualization package for dataframe objects generated with PyRanges.'

Project description

pyranges_plot

Gene visualization package for dataframe objects generated with PyRanges.

Pyranges is scbfjgnk... 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/.

Coming soon

  • Bases will be displayed along coordinates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyranges_plot-0.0.27.tar.gz (39.2 kB view details)

Uploaded Source

File details

Details for the file pyranges_plot-0.0.27.tar.gz.

File metadata

  • Download URL: pyranges_plot-0.0.27.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pyranges_plot-0.0.27.tar.gz
Algorithm Hash digest
SHA256 5f5fa7a74d1f05c01049a528cb5d746cdb7a898a30fe9d1afdbc6f6b880d86ab
MD5 7e55c075a46c38d6e6c1fd8907f89d2b
BLAKE2b-256 b11e2d3757e2cc703cf2d914b8868323e45c3ab1eb41980a522d08c34d4f38c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page