Skip to content

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

License

Notifications You must be signed in to change notification settings

phageghost/python-genome-browser

Repository files navigation

alt pygbrowse

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 or webserver-based public genome browsers such as the UCSC genome browser or the WashU Epigenome Browser.

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published