swvanderlaan / MetaGWASToolKit

A ToolKit to perform a Meta-analysis of Genome-Wide Association Studies
https://swvanderlaan.github.io/MetaGWASToolKit/
MIT License
14 stars 2 forks source link

Manhattan-plot: MIAMI plotting, aka stratified plotting. #11

Open swvanderlaan opened 6 years ago

swvanderlaan commented 6 years ago

Add in option to choose for a stratified Manhattan (bottom vs. upper for instance male vs. female), i.e. a MIAMI-plot. There is a specific package that has this function --> borrow it from there... 🔶

xEmz commented 1 year ago

load required package

library(hudson)

input

two files with 4 columns : SNP, CHR, POS, pvalue

create miami plot

gmirror(top=female_hudson, bottom=male_hudson, tline=0.05/nrow(female_hudson), bline=0.05/nrow(male_hudson), toptitle = "GWAS Comparison: Female samples", bottomtitle = "GWAS Comparison: Male samples", highlight_p = c(0.05/nrow(female_hudson),0.05/nrow(male_hudson)), highlighter="dodgerblue")