gwasFast: Fast Simulation of GWAS Summary Statistics

Description Usage Arguments Details Value Author(s) Examples

Description

Generates estimates of SNP effect sizes and p-values based on the true effect sizes and samples size.

Usage

1
gwasFast(signal, N)

Arguments

signal

Vector of effect sizes for all SNPs.
Can be generated with genSignal.

N

GWAS sample size.

Details

The function does not generate the artificial genotype and phenotype. Instead, finite sample distribution of the summary statistics is used for generation of the output.

Value

The function generates vectors of estimates of SNP effect sizes beta and p-values pv.
The vectors have the same length as signal.

Author(s)

Andrey A Shabalin andrey.shabalin@gmail.com

Examples

1
2
3
4
5
6
7
8
9
signal = genSignal(
            NSignalSnps = 10,
            NTotalSNPs = 20,
            heritability = 0.1,
            signalDistr = "Same")
            
gwas = gwasFast(signal = signal, N = 100)

cbind(beta = gwas$beta, pv = gwas$pv)

andreyshabalin/simPRS documentation built on May 21, 2019, 2 p.m.