make_optimal_prs: Construct and return the optimal PRS based on either P value...

Description Usage Arguments Details Value

Description

See the PRSice paper for an introduction to the method.

Usage

1
make_optimal_prs(bfile, assoc, p, pheno = NULL, mode = "new")

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

A sequence of P value thresholds at which to cut off the score.

pheno

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. This defaults to using the phenotype in the .fam file provided, though you can optionally provide a PLINK style phenotype file.

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.