artificialGenotypes: Create a set of artificial genotypes

View source: R/artificial_data.R

artificialGenotypesR Documentation

Create a set of artificial genotypes

Description

This function return a matrix of 0/1/2... up to ploidy level. Nothing fancy, each data point is sampled from an equally probable distribution.

Usage

artificialGenotypes(samples = 50, markers = 200, ploidy = 2)

Arguments

samples

number of individuals (rows)

markers

number of SNPs (columns)

ploidy

number of alleles per SNP

Value

a samples x markers matrix


GROAN documentation built on Nov. 28, 2022, 5:07 p.m.