gwsem (version 2.1.4)

loadResults: Load GWAS results into a single data.frame

Description

maturing A1 is the reference allele and A2 is the alternate allele.

Usage

loadResults(
  path,
  focus,
  ...,
  extraColumns = c(),
  .retainSE = deprecated(),
  signAdj = deprecated(),
  moderatorLevel = deprecated()
)

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

.retainSE

logical. Keep a column for the SE of the focus parameter

signAdj

name of column. Value of focus parameter is multiplied by the sign of the named column

moderatorLevel

deprecated

Value

a data.table with one row per SNP

See Also

Other reporting: isSuspicious(), plot.gwsemResult(), signifGxE(), signif()

Examples

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

Run the code above in your browser using DataLab