snps: A genetic data matrix.

snpsR Documentation

A genetic data matrix.

Description

This binary matrix contains the allelic states of genetic variables, typically single-nucleotide polymorphisms (SNPs) (or the presence/absence states of accessory genes), showing individuals in the rows and genetic loci in the columns.

Usage

data(snps)

Format

A binary matrix with 100 rows and 20,003 columns.

Details

Each individual in the sample is represented by a unique identifier (name) which corresponds to the name of one row of the snps matrix. Each genetic locus is also required to have a unique name.

In this snps 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).

Author(s)

Caitlin Collins caitiecollins@gmail.com


caitiecollins/treeWAS documentation built on March 9, 2024, 3:15 p.m.