coverage_by_chrom: Calculate mean allele richness at all sampling levels

Description Usage Arguments Value

Description

Calculates the mean allele richness across all markers for a sample at all sampling levels. Based on the formula presented in https://www.genetics.org/content/157/1/389

Usage

1
coverage_by_chrom(snp_chrom, snp_pos)

Arguments

snp_chrom

a factor vector inidicating the chrom of each marker

snp_pos

a vector with the position of each snp on its chrom

Value

a table of expected allele richness for each marker at each subsampling level with markers in rows and sampling levels in columns


DiDeoxy/PGDA documentation built on June 19, 2020, 5:38 a.m.