solve_bp_generic: Solve generic breed probabilities

Description Usage Arguments Value

Description

Given a breed probability matrix (provided by build_KBP() or build_MBP()), and a set of test animals' genotypes, use this function to derive breed probabilities for each test animal genotype based on a set of chosen SNPs

Usage

1
solve_bp_generic(snps_, geno_, b_mat_, white_)

Arguments

snps_

character vector containing names of SNPs to be extracted in geno, for use in breed probability estimation.

geno_

a matrix or data.frame with genotypes of test animals. SNPs in columns and individuals in rows. Genotypes must be coded as dosage of allele 'b' 0, 1, 2.

b_mat_

a data.frame that contains genotypes in rows and associated breed probabilities in columns. This is the output of build_KBP(), build_MBP(), etc.

white_

a logical indicating whether "white" breeds (Yorkshire and Landrace, assuming present) should be grouped together into a white breed probability.

Value

a data.frame containing test animals in rows and breed probabilities in columns


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