gwsem (version 0.1.5)

loadResults: Load GWAS results into a single data.frame

Description

Two columns are added, Z and P. Z is the focal parameter divded by its standard error. P is the unadjusted two-sided normal CDF corresponding to the absolute Z score.

Usage

loadResults(path, focus = "snpReg", ..., extraColumns = c())

Arguments

path

vector of paths to result files created by GWAS

focus

parameter name on which to calculate a Z score and p-value

...

Not used. Forces remaining arguments to be specified by name.

extraColumns

character vector of additional columns to load

Examples

Run this code
# NOT RUN {
tdir <- tempdir()
dir <- system.file("extdata", package = "gwsem")
pheno <- data.frame(anxiety=rnorm(500))
m1 <- buildOneItem(pheno, 'anxiety')
GWAS(m1, file.path(dir,"example.pgen"),
    file.path(tdir,"out.log"))
loadResults(file.path(tdir,"out.log"))
# }

Run the code above in your browser using DataCamp Workspace