Skip to content

pdaicode/assocplots

 
 

Repository files navigation

Assocplots: a python package for static and interactive visualization of multiple-group GWAS results

Table of Contents:

Background
Implementation
Installation
Examples
Documentation
Static plots (Quantile-quantile and Manhattan plots)
Interactive plots

##Background: Over the last decade plethora of genome-wide association studies (GWAS) data has been generated, requiring development of novel tools for visualization of large quantities of data. Quantile-quantile plots and Manhattan plots are the classical tools which have been utilized to present GWAS results and identify variants that are significantly associated with traits of interests. However, static visualizations are rather limiting in the information that can be shown. It is only in recent years that dynamic, interactive visualization has become more widely adopted, however it has not yet become a routine part of GWAS data analysis. Interactive data visualization not only allows to more clearly represent multidimensional data, but also encourages viewer’s engagement from simple data browsing to providing a platform for answering specific scientific questions, in ways that static data cannot. Here we present a package for viewing GWAS results not only using classic static Manhattan and quantile-quantile plots, but also through interactive extension which allows to visualize data interactively: zoom into dense regions, quickly obtain underlying details (e.g. SNP rs number or gene name, base pair position, p-value) by selecting a peak of interest, and visualizing the relationships between GWAS results from multiple groups. Furthermore, a scientist might be interested in comparing GWAS results from multiple groups: (1) various traits/phenotypes measured in a group of individuals, (2) same phenotype measured among distinct groups of individuals such as males and females, (3) expression quantitative loci measures across different tissues, and (4) various experimental conditions such as before and after drug treatment, to name a few. Our tool makes it possible to browse multiple charts in real-time to better understand the relationships among multiple groups.

Implementation:

Assocplots is implemented as a package for the Python programming language. Its basic functionality includes plotting interactive data visualization for viewing in the browser as well as static publication quality plots. The package is designed to be used both in Jupyter notebooks and in command line. Visualizing GWAS data in a web-based document (notebook), ensures data analysis reproducibility and makes it conveniently sharable with collaborators via online repository like GitHub. The assocplots package is open source and distributed via GitHub along with examples, documentation and installation instructions.

Installation:

In order to install assocplots run the following command in console:

pip install https://github.com/khramts/assocplots/archive/master.zip

Examples:

Example 1 Static Manhattan and QQ plot
Example 2 Code for Interactive Manhattan and QQ plot. In browser visualization

Documentation:

Static plots:

After installing assocplots, everytime after launching python, you will need to import the function which you would like to use.

Quantile-quantile (QQ) plot import
from assocplots.qqplot import *
Manhattan plot import
from assocplots.manhattan import *

List of alterative resources.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 51.7%
  • HTML 47.5%
  • Python 0.8%