kusk_check: Comparison Of Skewness and Kurtosis of Effect between GWAS...

Description Usage Arguments Details Author(s) Examples

Description

Compare the distributions of effect estimates between GWA studies.

Usage

1
kusk_check(script, worst = c(50, 75, 90, 99, 100), plot = TRUE)

Arguments

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.

Details

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.

Author(s)

Cristian Pattaro, Daniel Taliun, Christian Fuchsberger

Examples

 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)

	
	
    

GWAtoolbox documentation built on May 2, 2019, 4:54 p.m.