Description Usage Arguments Details Value Note Author(s) References Examples
View source: R/AlgebraicHaplo.R
It starts with a contigency table of pairs of haplotypes and ends up with the haplotypes one. The heterocygote cases are the middle of the column and rows.
1 | callhaplotype(dd)
|
dd |
This is a contingency table. Rows and columns are in the order are AA, AB,BB. |
A 2x2 contingency table of haplotypes is calculated. The most likely solution had been choosen.
The haplotype contingency table is returned. All entries are numeric.
The differences are the coice of the solution of the cubic equations. About 4 percent differences and about 7 assuming 1 per thousand. For data export or import you can use a different package.
Jan Wolfertz
David Clayton. "An r package for analysis of whole-genome association studies." Human Heredity, 64(1):45 - 51, 2007. doi: doi:10.1001/archgenpsychiatry.2010.25. URL http://archpsyc.jamanetwork.com/article.aspx?articleid=210679. Jan Wolfertz(in press.):""
1 2 3 4 5 6 7 8 9 10 11 12 13 | print("###########################")
dd2=matrix(c(4,0,0,0,30,0,0,0,23),ncol=3,byrow=TRUE)
callhaplotype(dd2)
callhaplotype(dd2)/(2*57)
### The second example
print("##############################")
print("The second example: \n")
dd=matrix(c(1212, 2, 0, 679, 0,0,75,0,0), byrow=TRUE, nrow=3)
colnames(dd)=c("CC","CT","TT")
rownames(dd)=c("CC","CT","TT")
callhaplotype(dd)
print("##############################")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.