check_ploidy | R Documentation |
Fraction of simplex or triplex markers
check_ploidy(geno = NULL, map = NULL, vcf.file = NULL, max.missing = 0.1)
geno |
Genotype matrix (markers x indiv) |
map |
Data frame with marker map (Marker, Chrom, Position) |
vcf.file |
VCF file input |
max.missing |
maximum proportion of missing data allowed per marker |
For every indiv in the genotype matrix, the fraction of markers per chromosome called as simplex or triplex is calculated, which should be low for diploids. A small amount of missing genotype data can be tolerated.
As of v4.2, a VCF file can be used as input instead
List containing
Matrix (indiv x chrom) of results
ggplot2 barplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.