snps.reconstruction | R Documentation |
This binary matrix contains the terminal and ancestral allelic states of a set of genetic variables
(for the original genetic data matrix, see: data(snps)
),
showing individuals in the rows and genetic loci in the columns.
The observed genotypic states of sampled individuals
(i.e., those represented at the terminal nodes of a phylogenetic tree)
are presented first, in elements 1:N (here 1:100).
These rows of the matrix are identical to the input snps
matrix (see: data(snps)
).
The unobserved ancestral states of the genotype at internal nodes have been
inferred via ancestral state reconstruction, using asr(snps, tree)
.
data(snps.reconstruction)
A binary matrix with 199 rows and 20,003 columns.
Each individual in the sample is represented by a unique identifier (name) which corresponds to the name of one row of the snps matrix. (Internal node names have been generated during ancestral state reconstruction.) Each genetic locus is also required to have a unique name.
In this snps.reconstruction
matrix, redundant columns are present for biallelic loci,
denoting the state of the second allele as the inverse of the previous column
(e.g., compare locus 1.g and locus 1.a).
These biallelic sites can be condensed into a more efficient binary form
by using get.binary.snps(snps)
(see the treeWAS vignette).
Caitlin Collins caitiecollins@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.