Description Usage Arguments Details Value Author(s) References See Also Examples
This function computes the allelic sharing distance (ASD) for diploid genotypes.
1 |
x |
an object of class |
scaled |
a logical value specifying whether the distances should be scaled by the number of loci. |
The ASD between two diploid genotypes is (Gao and Martin, 2009):
(1/L)sum d_j, j = 1, ... L
where L is the number loci, d_j is the value for the jth locus: 0 if both genotypes are identical, 1 if they have one allele in common, or 2 if they have no allele in common.
dist.asd
works for all diploid genotypes (phased or unphased,
with two alleles or more). Note that the required conditions are not
checked by the present function: see the functions below.
an object of class "dist"
.
Emmanuel Paradis
Gao, X. and Martin, E. R. (2009) Using allele sharing distance for detecting human population stratification. Human Hederity, 68, 182–191.
1 2 3 4 5 6 |
Loading required package: ape
Loading required package: adegenet
Loading required package: ade4
/// adegenet 2.1.1 is loaded ////////////
> overview: '?adegenet'
> tutorials/doc/questions: 'adegenetWeb()'
> bug reports/feature requests: adegenetIssues()
Attaching package: 'pegas'
The following object is masked from 'package:ade4':
amova
The following object is masked from 'package:ape':
mst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.