haplo_comp: Compute haplotype frequencies and genotype probabilities

Description Usage Arguments Value

Description

Calculates haplotype frequencies and uses them to estimate genotype probabilities

Usage

1
haplo_comp(x, y = NULL, haplotypes = FALSE)

Arguments

x

A data.frame that contains haplotypes for individuals (rows) of a population, for a number of SNPs (columns). Haplotypes coded 0 or 1 as type character.

y

A data.frame that contains haplotypes for individuals (rows) of a population, for a number of SNPs (columns). Haplotypes coded 0 or 1 as type character.

haplotypes

boolean. If true, return haplotype frequencies of population x. If false, return breed probability matrix (posterior probabilities for each breed, rows, to have particular genotype, columns)

Value

Either haplotype frequencies or breed probability matrix


funkhou9/breedTools documentation built on May 16, 2019, 4:04 p.m.