Last updated: 2021-06-07

Checks: 2 0

Knit directory: rss/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version f10c516. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rproj.user/

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (rmd/example.Rmd) and HTML (docs/example.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd f10c516 xiangzhu 2021-06-07 wflow_publish(“rmd/example.Rmd”)
html bab3f58 Xiang Zhu 2020-06-24 Build site.
html 6bfeeae Xiang Zhu 2020-06-23 Build site.
Rmd 9cb6fa4 Xiang Zhu 2020-06-23 wflow_publish(“rmd/example.Rmd”)

We illustrate how to use RSS methods and software through the following examples.

Example 1: Fit RSS models via MCMC, and estimate SNP heritability (PVE).

Example 1 illustrates how to fit RSS models using MCMC algorithms. Three types of prior distributions are considered: BVSR (Guan and Stephens, 2011), BSLMM (Zhou et al, 2013), and ASH (Stephens, 2017). The MCMC output is further used to estimate the SNP heritability. This example is closely related to Section 4.2 of Zhu and Stephens (2017).

Example 2: Fit RSS-BVSR via MCMC with three types of LD matrix.

Example 2 illustrates the impact of different LD estimates on the RSS results. Three types of estimated LD matrices are considered: sample LD based on cohort individuals, sample LD based on panel individuals, and shrinkage LD estimate based on panel individuals (Wen and Stephens, 2010). This example is closely related to Section 4.1 of Zhu and Stephens (2017).

Example 3: Fit RSS-BVSR via MCMC with two types of standard error (SE).

Example 3 illustrates the impact of two definitions of SE on RSS results. This example is closely related to Section 2.1 of Zhu and Stephens (2017).

Example 4: Fit RSS-BVSR via variational Bayes (VB) methods.

Example 4 illustrates how to fit an RSS-BVSR model using variational Bayes (VB) approximation, and compares the results with previous work based on individual-level data (Carbonetto and Stephens, 2012). This example is closely related to the section entitled “Connection with enrichment analysis of individual-level data” of Zhu and Stephens (2018).

Example 5: Enrichment and prioritization analysis based on RSS-E.

Example 5 illustrates how to perform enrichment and prioritization analysis of GWAS summary statistics based on RSS-E. This example consists of two parts:

Example 5, Part A

This part shows enrichment and prioritization analysis of a synthetic dataset used in simulation studies of Zhu and Stephens (2018). Part A gives users a quick view of how RSS-E works in enrichment and prioritization analysis.

Example 5, Part B

This part shows an end-to-end enrichment and prioritization analysis of inflammatory bowel disease GWAS summary statistics (Liu et al, 2015) and a gene set named “IL23-mediated signaling events” (Pathway Commons 2, PID, 37 genes) based on RSS-E. Part B illustrates the actual data analyses performed in Zhu and Stephens (2018).

Example 6: Enrichment and prioritization analysis based on RSS-NET.

Example 6 illustrates how to perform enrichment and prioritization analysis of GWAS summary statistics based on RSS-NET. This example consists of two parts:

Example 6, Part A

This part shows enrichment and prioritization analysis of two synthetic datasets used in simulation studies of Zhu et al (2021). Part A gives users a quick view of how RSS-NET works in enrichment and prioritization analysis.

Example 6, Part B

This part shows an end-to-end enrichment and prioritization analysis of inflammatory bowel disease GWAS summary statistics (Liu et al, 2015) and a gene regulatory network for natural killer cells (ENCODE Project Consortium, 2012) based on RSS-NET. Part B illustrates the actual data analyses performed in Zhu et al (2021).