Computes the exact distribution of a genetic score on a set of SNPs
Usage
dscore(x, ...)
# S3 method for default
dscore(x, ...)
# S3 method for character
dscore(x, ...)
pscore(q, x, ...)
Value
A vector with the probabilities of having 0, 1, 2, 3, ... 2*K alleles of a genetic score (K indicates the number of SNPs). When name of the SNPs is provided, an attribute called 'MAFs' is also returned
Arguments
x
a numeric vector containing either the minor allele frequencies (MAF) of the SNPs used to created the genetic score or the names of the SNPs.
q
quantile
...
further arguments to be passed to useMart function from biomaRt (not necessary).
References
I Subirana, G Lucas, C Lluis-Granella, R Elosua, JR Gonzalez. Predicting individual disease probability using the exact distribution of a genetic risk score at the population level. Submitted