PRS-CS: a polygenic prediction method that infers posterior SNP effect sizes under continuous shrinkage (CS) priors
Source:R/regularizedRegressionWrappers.R
prsCs.RdThis function is a wrapper for the PRS-CS method implemented in C++. It takes marginal effect size estimates from regression and an external LD reference panel and infers posterior SNP effect sizes using Bayesian regression with continuous shrinkage priors.
Usage
prsCs(
bhat,
R,
n,
a = 1,
b = 0.5,
phi = NULL,
maf = NULL,
nIter = 1000,
nBurnin = 500,
thin = 5,
verbose = FALSE,
seed = NULL
)Arguments
- bhat
A vector of marginal effect sizes.
- R
The LD correlation matrix (a single matrix over the analysed window), as in
susieR::susie_rss().- n
Sample size of the GWAS.
- a
Shape parameter for the prior distribution of psi. Default is 1.
- b
Scale parameter for the prior distribution of psi. Default is 0.5.
- phi
Global shrinkage parameter. If NULL, it will be estimated automatically. Default is NULL.
- maf
A vector of minor allele frequencies, if available, will standardize the effect sizes by MAF. Default is NULL.
- nIter
Number of MCMC iterations. Default is 1000.
- nBurnin
Number of burn-in iterations. Default is 500.
- thin
Thinning factor for MCMC. Default is 5.
- verbose
Whether to print verbose output. Default is FALSE.
- seed
Random seed for reproducibility. Default is NULL.
Value
A list containing the posterior estimates: - betaEst: Posterior estimates of SNP effect sizes. - psiEst: Posterior estimates of psi (shrinkage parameters). - sigmaEst: Posterior estimate of the residual variance. - phiEst: Posterior estimate of the global shrinkage parameter.
Details
Internal: prsCsWeights is the public interface. It forwards
the arguments below other than bhat, R and n through
PrsCsOptions, and with fitRetention returns this
function's list as the "fit" attribute of its weights.