Learn R Programming

gwsem (version 2.1.4)

loadSuspicious: Load suspicious GWAS results into a single data.frame

Description

deprecated See example for how to change your code.

Usage

loadSuspicious(
  path,
  focus,
  ...,
  extraColumns = c(),
  signAdj = NULL,
  moderatorLevel = NULL
)

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

signAdj

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

moderatorLevel

see details

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"))
r1 <- loadResults(file.path(tdir,"out.log"), "snp_to_anxiety")
r1[isSuspicious(r1, "snp_to_anxiety"),]
# }

Run the code above in your browser using DataLab