This function extracts haplotypes from phased genotypes.
1 2 3 4 5
an object of class
a vector of integers giving the loci to analyse.
a logical value specifying whether to not print the
progress of the analysis (
by default only the unique haplotypes are returned
with their frequencies. If
arguments passed to and from methods.
The individuals with at least one unphased genotype are ignored with a warning.
dist.haplotype.loci computes pairwise distances among
haplotypes by counting the number of different alleles.
haplotype returns a matrix of mode character with the loci as
rows and the haplotypes as columns. The attribute
the counts of each haplotype and the class is
dist.haplotype.loci returns an object of class
haplotype is a generic function with methods for objects of
"DNAbin" and of class
"loci". Note that the class
returned by these methods is different:
"haplotype.loci", respectively. This and other details are
likely to change in the future.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.