about summary refs log tree commit diff
path: root/e2e-tests/hsmice/jwas-manhattan.r
blob: a437a8c49a209d1bb1c783cdb20436b02c06b847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
library(dplyr)
library(qqman)
library(readr)

args = commandArgs(trailingOnly=TRUE)
if (length(args) != 1) {
    write("Usage: Rscript jwas-manhattan.r GWAS-FILE", stderr())
    quit(status=1)
}
gwas_file = args[1]

gwas = mutate(read_tsv(gwas_file), antilog=10^(-modelfrequency))
manhattan(gwas, chr="chromosome", bp="position", snp="marker_ID", p="antilog")