Learn R Programming

SNPassoc (version 1.8-4)

dscore: Genetic risk allele score

Description

Computes the exact distribution of a genetic risk allele score

Usage

dscore(x, ...)

## S3 method for class 'default': dscore(x, \dots) ## S3 method for class 'setupSNP': dscore(x, \dots)

Arguments

x
a vector of probabilities representing the MAF of each SNP or an object of class setupSNP.
...
further arguments to be passed to or from methods.

Value

  • A vector with probabilities for each allele count

References

Lucas G, et al. (2011). Submitted to American Journal of Human Genetics

See Also

snp, setupSNP

Examples

Run this code
# example with 4 SNPs - the user gives the probabilities
MAFs <- c(0.1, 0.07, 0.2, 0.4)
dscore(MAFs)

# example with 4 SNPs - using setupSNP
data(SNPs)
myDat<-setupSNP(SNPs,6:10,sep="")
dscore(myDat)

Run the code above in your browser using DataLab