README.md

Rprs

R package for computing Polygenic Risk Scores (PRS) from dosages (DS). Supports VCF and BCF input formats.

Install

Clone repository using git clone and run the following command:

R CMD INSTALL Rprs

Run

P-value Thresholding (PT) method.

library(Rprs)
p <- prs_pt("weights.txt", "dosages.vcf.gz", "samples.txt", pvalues = c(1.0, 5e-8))
write.table(p, col.names = TRUE, row.names = FALSE, sep = "\t", quote = F)

Genome-wide PRS method.

library(Rprs)
p <- prs_gw("weights.txt", "dosages.vcf.gz", "samples.txt", weight_col = "LDpred_")
write.table(p, col.names = TRUE, row.names = FALSE, sep = "\t", quote = F)


statgen/Rprs documentation built on July 11, 2020, 1:37 a.m.