Learn R Programming

pcadapt (version 3.0.4)

cover.to.pool: Simulate frequency matrix from genotype and coverage matrices

Description

cover.to.pool creates a matrix of frequency estimates, given a genotype matrix and a coverage matrix.

Usage

cover.to.pool(data, cover.matrix, pop, ploidy = 2)

Arguments

data
a matrix with n rows and p columns where n is the number of individuals and p is the number of markers.
cover.matrix
a matrix with n rows and p columns where n is the number of pools and is the number of markers.
pop
a list of integers or strings specifying which subpopulation the individuals belong to.
ploidy
an integer specifying the ploidy of the individuals.