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

Description Usage Arguments Examples

View source: R/report.R

Description

\lifecycle

deprecated See example for how to change your code.

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
7
8
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"),]

gwsem documentation built on Jan. 18, 2022, 1:09 a.m.