make_prs: Construct a simple PRS and optionally return the association...

Description Usage Arguments Details Value

Description

To construct an optimal PRS see make_optimal_prs() and to make a comorbid PRS see make_comorbid_prs().

Usage

1
make_prs(bfile, assoc, p, pheno)

Arguments

bfile

Base file name of the binary file set used for the analysis. See details for construction and instructions.

assoc

File name and path to the assoc file with the beta and P values used to construct the score.

p

P value threshold to cut off the score.

pheno

(optional) Vector or file path to phenotype to use for association analysis. This is required by other functions but this function by default just returns the score so you can do the association yourself.

Details

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.

Value

(Currently) A data frame with three columns: FID, IID, and the generated score.


Chris1221/pRs documentation built on May 6, 2019, 11:47 a.m.