Skip to main content

Tools for making plots of genomic datasets in a genome-browser-like format

Project description

![alt pygbrowse](https://raw.githubusercontent.com/phageghost/python-genome-browser/master/pygbrowse_logo_1_med_flat.png)

# python-genome-browser Tools for making plots of genomic datasets in a genome-browser-like format.

## What does it do?

The python genome browser, AKA pygbrowse, makes it easy to generate aligned plots of genomic data. This is similar to software such as the [Integrated Genome Viewer (IGV) from the Broad Institute](http://software.broadinstitute.org/software/igv/) or webserver-based public genome browsers such as the [UCSC genome browser](http://genome.ucsc.edu) or the [WashU Epigenome Browser](http://epigenomegateway.wustl.edu/).

## Typical use cases:

  1. Visualizing data inside a Jupyter notebook.

  2. Preparing figures for presentation or publication.

## Why not just use those tools you just mentioned?

For a couple of reasons:

  1. Speed and ease of use: The workflow for converting data to the appropriate formats, uploading the data to a remote webserver (or providing URLs for hosted data), then selecting the region to visualize and waiting for it to be rendered is slow and cumbersome with many manual interventions needed. Although APIs exist for some of these tools, creating a flexible end-to-end automated visualizer that takes arbitrary data and displays it on your screen would require quite a bit of custom scripting.

  2. Flexibility: Different genome browsers natively accept different subsets of the data types commonly used in genomics, and interconverting them is tedious. In some cases certain data types are not supported at all (e.g. long-range interactions such as HiC are not suported by the UCSC genome browser). Pygbrowse (will) natively support most of the most common data formats, removing one or more “data munging” operations from your workflow.

  3. Transparency: Current genome browsers have very specific requirements for the format of their input data, not all of which are as well-documented as we might like. In addition, very little feedback is provided regarding such errors, leading the user into a painful trial-and-error process in order to load their data. Pygbrowse strives to be more flexible in the format of its input data and to provide helpful feedback when problems do occur.

  4. Beauty: They say that beauty is in the eye of the beholder but to _this_ beholder the default outputs of the available genome browsers are aesthetically-lacking. They often require extensive manipulation in Adobe Illustrator or Ink to prepare them for publication or even to be legible in a presentation slide. Pygbrowse is designed from the ground up for generating static figures with proportions that can be easily scaled for common use cases.

## Wait, you’re calling this a genome browser but I can’t really browse around like I can with those other tools, can I?

Well, you _can_ browse, in a sense, by calling the visualizer with different sets of coordinates. But it’s not really designed for the kind of interactive, dynamic browsing experience provided by the other tools – as mentioned earlier it is optimzed for rendering static “browser snapshots”. That being said, however, we may add controls to provide interactive browser functionality when used inside a Jupyter notebook in a future version …

Logo makes use of clipart by Paula Washington at [AnimalsClipart.com](http://animalsclipart.com/pig-design/)

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

pygbrowse-0.3.3.tar.gz (21.4 kB view hashes)

Uploaded Source

Built Distribution

pygbrowse-0.3.3-py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 3

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