dat: Simulated allele counts

Description Usage Format Examples

Description

dat is a simulated data set meant to mimic GBS data. It is a list with three components. The first two components are N (number of individuals) by P (number of SNPs) matrixes with allele counts for the first and second allele at each locus, respectively. The third component is a numeric vector that gives the true ploidy for each individual (2 = diploid, 4 = tetraploid).

Usage

1
data("dat")

Format

The format is: List of 3 $ : int [1:200, 1:10000] NA NA 7 4 NA NA NA NA NA NA ... $ : int [1:200, 1:10000] NA NA 2 5 NA NA NA NA NA NA ... $ : num [1:200] 4 2 4 2 2 2 2 2 2 2 ...

Examples

1
2

Example output

Loading required package: MASS
Loading required package: rjags
Loading required package: coda
Linked to JAGS 4.2.0
Loaded modules: basemod,bugs
List of 3
 $ : int [1:200, 1:10000] NA NA 7 4 NA NA NA NA NA NA ...
 $ : int [1:200, 1:10000] NA NA 2 5 NA NA NA NA NA NA ...
 $ : num [1:200] 4 2 4 2 2 2 2 2 2 2 ...

gbs2ploidy documentation built on May 2, 2019, 4:17 a.m.