Location on server: /space/chen-syn01/1/data/cinliu/plots/manhattan_plots/qqman
Here are R scripts for Manhattan and Miami plots (eg, male vs female GWAS) for GWAS result visualization.
Dennis uses the data here (/space/chen-syn01/1/data/cmakowski/GWASgclus_UKB/Mar2020_fastGWA/phenotypes/main_analysis/sumstats/*fastGWA).
I use scp to fetch data on the server to my local laptop
scp chc101@ip99.ucsd.edu:/space/chen-syn01/1/data/chen/gwas_gclust/UKB/selection/analysis/summary.txt local_filepath
@Nini, we may ask your help adjust the Manhanttan plots later so please take a look at the code.
Here are an initial R script for plotting and three plots generated by the script. It'd be great to have your help to combine the three plots side-by-side into one single plot.
made using ggplot
Instructions:
We want to update five of the 24 regions to have a "break" in the y-axis.
I have attached:
1) R file: manhattan plot script
2) text files: that include names of area and thickness regions that is called in the area and thickness loop, respectively
3) png file: an example of one output plot (with a y-max of 60).
Specifically, we can re-run to set ymax to 30 for all plots (I've already updated that in the script). You can test the script out as is to make sure that you're able to generate the plots.
Then for five area regions, we would need to create a break in the y-axis manually because they have a log-pval greater than 30 for the following five regions:
parsopercularis_area
inferiorparietal_area
occipital_area
precuneus_area
motorpremotor_area
Summary statistics are in: /space/chen-syn01/1/data/cmakowski/GWASgclus_UKB/Mar2020_fastGWA/phenotypes/main_analysis/sumstats/*fastGWA
What I did:
Plots had to be remade using qqman instead of ggplot because we need axis breaks
Scrip rewritten
bold parts are the major edits
Plots with axis breaks are seperatly made. One example presented below, the rest is attached in the google drive folder.
Additional adjustments made in terms of color and font size
The plots look something like this:
The general plot:
Sample axis break code