hlaLDMatrix | R Documentation |
To calculate composite linkage disequilibrium (r2) among SNPs within a region.
hlaLDMatrix(geno, loci=NULL, maf=0.01, assembly="auto", draw=TRUE,
verbose=TRUE)
geno |
an object of |
maf |
MAF filter |
loci |
NULL or a character vector, e.g., "A", "B" |
assembly |
the human genome reference: "hg18", "hg19" (default), "hg38"; "auto" refers to "hg19"; "auto-silent" refers to "hg19" without any warning |
draw |
if TRUE, return a ggplot2 object |
verbose |
if TRUE, show information |
Return a ggplot2 object if draw=TRUE
or a matrix correlation.
Xiuwen Zheng
Weir BS, Cockerham CC: Complete characterization of disequilibrium at two loci; in Feldman MW (ed): Mathematical Evolutionary Theory. Princeton, NJ: Princeton University Press, 1989.
region <- 500*1000 # basepair
geno <- hlaGenoSubsetFlank(HapMap_CEU_Geno, "A", region)
summary(geno)
hlaLDMatrix(geno, "A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.