Description Usage Arguments Details Author(s) Examples
Compare the distributions of effect estimates between GWA studies.
1 | kusk_check(script, worst = c(50, 75, 90, 99, 100), plot = TRUE)
|
script |
Name of a textual input file with processing instructions. The file should contain the names and locations of all GWAS data files to be processed along with basic information from each individual study, and instructions for the quality check. |
worst |
A vector consisting of any of integer numbers 50, 75, 95, 99, and 100. |
plot |
Logical value indicating if the diagnostic plot should be produced. |
The GWAtoolbox allows automatic comparison of skewness and kurtosis of effect size distribution between GWA stuties.
The gwasqc()
function estimates the corresponding skewness and kurtosis values during the quality check and includes them into the CSV reports.
Then, the auxiliary kusk_check()
function can be used to export this information to the data frame and to produce the diagnostic plots.
As input it requires the same script as gwasqc()
function and assumes that all the CSV reports are in the current working directory.
Additionally, an optional list consisting of any of integer numbers 50, 75, 95, 99, and 100 can be specified.
The numbers correspond to the percentage of SNPs to be considered as representing the null distribution.
Cristian Pattaro, Daniel Taliun, Christian Fuchsberger
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# name of an input script
script <- "GWASQC_script.txt"
# load GWAtoolbox library
library(GWAtoolbox)
# show contents of the input script
file.show(script, title=script)
# run gwasqc() function
gwasqc(script)
# run kusk_check() function
W <- kusk_check("GWASQC_script.txt", worst = c(50), plot = TRUE)
points(W$sk50[W$ku50 > 5], W$ku50[W$ku50 > 5], pch = 22, bg = 2, cex = 2)
text(W$sk50[W$ku50 > 5], W$ku50[W$ku50 > 5], lab = W$study[W$ku50 > 5], cex = 1, pos = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.