Description Usage Arguments Value
analytically compute the variance of a projection given a standard error of beta for a given trait
compute_seb_proj_var
1 2 3 4 5 6 7 8 9 | compute_seb_proj_var(
gwas.DT,
shrink.DT,
man.DT,
w.DT,
ref_gt_dir,
method = "shrinkage",
quiet = FALSE
)
|
gwas.DT |
a data.table - variants and summary statistics |
shrink.DT |
a data.table - as returned by |
man.DT |
a data.table - snp manifest file that maps snps to ld.block |
w.DT |
a data.table - a data table of weights/rotations from a basis first column is 'pid' and subsequent columns for each principal component. |
ref_gt_dir |
scalar - path to a dir of R objects named CHR_1kg.RData containing reference GT in snpMatrix format |
method |
scalar - shrinkage method to use (default shrinkage) but also valid is none |
quiet |
a scalar - boolean whether to show progress messages |
a scalar of variances for each principal component
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.