Skip to content

Commit

Permalink
include title for qq_plots
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkorte committed Mar 28, 2021
1 parent 8b764d2 commit 77671dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gwas.r
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# mc enabled to use on linux

amm_gwas<-function(Y,X,K,p=0.001,m=2,run=TRUE,AI=TRUE,calculate.effect.size=FALSE,include.lm=FALSE,include.kw=FALSE,use.SNP_INFO=FALSE,update.top_snps=FALSE,report=TRUE,plot_h=FALSE, mc = FALSE, cores ='all') {
amm_gwas<-function(Y,X,K,p=0.001,m=2,run=TRUE,AI=FALSE,calculate.effect.size=FALSE,include.lm=FALSE,include.kw=FALSE,use.SNP_INFO=FALSE,update.top_snps=FALSE,report=TRUE,plot_h=FALSE, mc = FALSE, cores ='all') {

stopifnot(is.numeric(Y[,1]))
Y_ <- Y[order(Y[,1]),]
Expand Down
3 changes: 2 additions & 1 deletion plots_gwas.r
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ abline(v=poso,lty=2,col=2)}
}


qq_plot<-function(output,h=8,farbe='red',max.y=NA,maf=0.05,sex=2) {
qq_plot<-function(output,h=8,farbe='red',max.y=NA,maf=0.05,sex=2,main='') {
colnames(output)[h]<-'Plot'
out_<-subset(output,output$MAF>maf)

Expand All @@ -72,6 +72,7 @@ plot(e,o,type='l',col=farbe,xlab=expression(Expected~~-log[10](italic(p))), ylab
abline(0,1,col="dark grey")
axis(1,lwd=2)
axis(2,lwd=2)
title(main=main)
}


Expand Down

0 comments on commit 77671dd

Please sign in to comment.