Description Usage Arguments Examples
deprecated See example for how to change your code.
1 2 3 4 5 6 7 8 | loadSuspicious(
path,
focus,
...,
extraColumns = c(),
signAdj = NULL,
moderatorLevel = NULL
)
|
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 |
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"),]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.