Visualization of Multiple Genome-Wide Association Study Summary Statistics

A 'grammar of graphics' approach for visualizing summary statistics from multiple Genome-wide Association Studies (GWAS). It offers geneticists, bioinformaticians, and researchers a powerful yet flexible tool for illustrating complex genetic associations using data from various GWAS datasets. The visualizations can be extensively customized, facilitating detailed comparative analysis across different genetic studies. Reference: Uffelmann, E. et al. (2021) .


ggmugs

R-CMD-check

The goal of ggmugs is to visualize multiple Genome-wide Association Study (GWAS) summary statistics

Installation

To install the ggmugs package, run:

if(!require("devtools")){
  install.packages("devtools")
  library("devtools")
}

devtools::install_github("Broccolito/ggmugs")

Example

This is a basic example which shows you how to solve a common problem:

library(ggmugs)

plt = ggmugs(
  study_name = c("sumstat1", "sumstat2", "sumstat3", "sumstat4", "sumstat5"),
  summary_stat = c("https://raw.githubusercontent.com/Broccolito/ggmugs_data/main/sumstat1.txt",
                   "https://raw.githubusercontent.com/Broccolito/ggmugs_data/main/sumstat2.txt",
                   "https://raw.githubusercontent.com/Broccolito/ggmugs_data/main/sumstat3.txt",
                   "https://raw.githubusercontent.com/Broccolito/ggmugs_data/main/sumstat4.txt",
                   "https://raw.githubusercontent.com/Broccolito/ggmugs_data/main/sumstat5.txt"),
  p1 = 1e-4,
  p2 = 1e-6,
  p3 = 1e-8,
  color1 = "#FFFFE0",
  color2 = "#FFC300",
  color3 = "#FF5733"
)

Here is an example output from the function:

Example Output

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggmugs")

0.6.0 by Wanjun Gu, 2 years ago


Browse source code at https://github.com/cran/ggmugs


Authors: Wanjun Gu [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports data.table, dplyr, ggplot2, purrr, tibble, tidyr

Suggests spelling, testthat


See at CRAN