check_ploidy: Check ploidy for tetraploids

View source: R/check_ploidy.R

check_ploidyR Documentation

Check ploidy for tetraploids

Description

Fraction of simplex or triplex markers

Usage

check_ploidy(geno = NULL, map = NULL, vcf.file = NULL, max.missing = 0.1)

Arguments

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

Details

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

Value

List containing

mat

Matrix (indiv x chrom) of results

plot

ggplot2 barplot


jendelman/polyBreedR documentation built on Jan. 5, 2025, 12:13 a.m.