predict_XPASS: Construct PRS from the XPASS output.

View source: R/predict_XPASS.R

predict_XPASSR Documentation

Construct PRS from the XPASS output.

Description

This function use the XPASS posterior means to construct PRS for the prediction samples.

Usage

predict_XPASS(pm, file_predgeno)

Arguments

pm

The output 'mu' obtained from the 'XPASS' function, which stores the posterior means computed by XPASS.

file_predgeno

Prefix of the prediction samples' genotypes in plink format.

Value

A data frame storing the PRS generated by using mu1, mu2, mu_XPASS1, and mu_XPASS2, respectively.

Examples

See vignette.

YangLabHKUST/XPASS documentation built on June 29, 2024, 11:16 a.m.