Genome-wide association study (GWAS) is a hypotheses-free method for identifying associations between genetic regions and traits (incl. diseases). GWAS typically searches for small variations, known as single-nucleotide polymorphisms (SNPs), that occur more frequently in people with a particular disease than those without the disease.
Researchers use two groups of participants: people with the disease being studied (case group) and similar people without the disease (control group). Strategically selected SNPs are then compared between groups. If certain variations are found to be significantly more frequent in people with the disease compared to people without the disease, the variations are said to be associated with the disease.
Results are typically displayed in a Manhattan plot with -log10(p-value) plotted against the position in the genome. Two lines are added to indicate the genome-wide significance threshold (p=5.0×10−8) and the cut-off level for selecting SNPs for replication study (p=1.0×10−5).
The app has five tabs:
-
An interactive Manhattan plot
-
Circular Manhattan plot
-
Quantile-quantile (QQ) plot
-
SNP density plot
-
Help
This R Shiny mini-app reads the files allocated in the data
folder, you can add your own data and use it in the app. The app expects a csv derived from the PLINK .map file, this file should contain the following columns:
- CHR - chromosome number (
integer
) - BP - genomic base-pair position (
integer
) - P - p-value (
integer
) - SNP - snp identifier (
character
) - ZSCORE - z-score (
numeric
) - EFFECTSIZE - effect size (
numeric
) - GENE - nearest gene to SNP (
character
) - DISTANCE - distance between the SNP and GENE (
integer
)
The example data is the R example dataset HapMap, from the manhattanly
packages.
You can clone this repository by using the command:
git clone https://github.com/aridhia/gwas-app
Open the .Rproj file in RStudio, source the script dependencies.R
to install all the packages required by the app, and run runApp()
to start the app.
- Create a new mini-app in the workspace called "gwas-app" and delete the folder created for it
- Download this GitHub repo as a ZIP file, or clone it and zip all the files
- Upload the zip file to the workspace and unzip inside a folder called "gwas-app"
- Run the
dependencies.R
script to install all the packages the app requires - Run the app in your workspace
For more information visit https://knowledgebase.aridhia.io/article/how-to-upload-your-mini-app/