View source: R/analysis_diversity_vis_functions.R
ldJavaApp | R Documentation |
Calculates linkage disequilibrium (LD) and runs an interactive Java visualizer for LD results.
ldJavaApp(
tasObj,
ldType = c("SlidingWindow", "All"),
windowSize = NULL,
hetCalls = c("missing", "ignore", "third"),
verbose = TRUE
)
tasObj |
An object of class |
ldType |
How do you want LD calculated? Currently, the available
options are |
windowSize |
What size do you want your LD analysis window? If you
have chosen |
hetCalls |
How should heterozygous calls be handled? Current options
are |
verbose |
Display messages? Defaults to |
Linkage disequilibrium between any set of polymorphisms can be
estimated by initially filtering a genotype dataset and then using
this function. At this time, D'
, r^{2}
and P-values will be estimated. The
current version calculates LD between haplotypes with known phase only
(unphased diploid genotypes are not supported; see PowerMarker or
Arlequin for genotype support).
D'
is the standardized disequilibrium coefficient, a useful
statistic for determining whether recombination or homoplasy has
occurred between a pair of alleles.
r^{2}
represents the correlation between alleles at two loci, which
is informative for evaluating the resolution of association approaches.
D'
and r^{2}
can be calculated when only two alleles are present. If more
than two alleles, only the two most frequent alleles are used. P-values
are determined by a two-sided Fisher's Exact test is calculated. Since LD
is meaningless when scored with very small sample sizes, a minimum of 20
taxa must be present to calculate LD and there must be 2 or more minor
alleles.
Returns a Java-based visualization application.
linkageDiseq
, ldPlot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.