knitr::opts_chunk$set(echo = TRUE, fig.width = 7, fig.height = 7, warning = FALSE) library(knitr) library(qtl) library(qtlTools)
library(devtools) install_github("jtlovell/qtlTools")
library(qtlTools) library(qtl)
data(fake.f2) covar<-data.frame(covar = fake.f2$phe$sex) fake.f2<-calc.genoprob(fake.f2)
set.seed(42) perms0<-scanone(fake.f2, pheno.col="phenotype", addcovar=covar, intcovar=covar, perm.strata=covar[,1], n.perm=100, verbose = F) summary(perms0)
set.seed(42) perms1<-scanone.GWERk(fake.f2, pheno.col="phenotype", addcovar=covar, intcovar=covar, perm.strata=covar[,1], n.perm=100, GWERk=1, verbose = F) summary(perms1) plot(as.numeric(perms0), as.numeric(perms1), xlab="standard perms", ylab = "GWER perms", main = "scanone permutation comparison") abline(a=0,b=1, lty=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.