Description Usage Arguments Details Value
See our pre-print for an introduction to the method.
1 2 | make_optimal_comborbid_prs(bfile, assoc, p, pheno = NULL, n_i, r_i, h_i, h_1,
mode = 1, training = "cv")
|
bfile |
Vector of base file names of the binary file set used for the analysis. See details for construction and instructions. |
assoc |
Vector of file names and paths to the assoc files with the beta and P values used to construct the score. |
p |
A vector of P value thresholds to test each score at. |
pheno |
Vector or file path to phenotype to use for association analysis. This defaults to using the phenotype in the .fam file provided, though you can optionally provide a PLINK style phenotype file. |
n_i |
Vector of the sample sizes used to deduce the effect sizes presented in assoc. |
r_i |
Vector of the genetic covariance of the comorbid trait with the overall phenotype given in pheno. |
h_i |
Vector of the heritability of each of the comorbid traits. |
h_1 |
The chip heritability. |
mode |
See details. If mode is set to 1, then P value thresholds are estimated seperately for each of the different scores prior to their combination. If mode is set to 2, then P values thresholds are estimated *all together* to create the optimal score. Mode 2 is significantly slower than mode 1 for obvious reasons. |
training |
The algorithm used to train the scores. Defaults to 10 times cross validation. |
All input takes the form of PLINK files. If your input is in a different format, please convert it beforehand. This program requires binary format input for performance reasons. We also recommend clumping SNPs or some other method for removing LD between markers. See the vignette for assistance on this.
(Currently) A data frame with three columns: FID, IID, and the generated score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.