Description Usage Arguments Details Value Examples
This generic function calculates some linkage disequilibrium statistics.
1 2 |
object |
an object of class |
subsites |
same as in the other modules |
lower.bound |
sites with minor-allele-frequency>=lower.bound are considered |
upper.bound |
sites with minor-allele-frequency<=upper.bound are considered |
Note, the pairwise comparisons are computed via combn(n.snps,2)
.
The slot GENOME.class@region.stats@linkage.disequilibrium will be filled.
(R2,P-value,Distance)
Fisher's Exact Test is used for the P-values.
1 2 3 4 5 6 | # GENOME.class <- readData("...\Alignments")
# GENOME.class
# GENOME.class <- calc.R2(GENOME.class)
# show the result:
# GENOME.class@region.stats@linkage.disequilibrium
# [[x]][[y]] x:region, y:population
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.