infergen: Infer Genotype of Hybrids

View source: R/infergen.R

infergenR Documentation

Infer Genotype of Hybrids

Description

Infer additive and dominance genotypes of hybrids based on their parental genotypes.

Usage

infergen(inbred_gen, hybrid_phe)

Arguments

inbred_gen

a matrix for genotypes of parental lines in numeric format, coded as 1, 0 and -1. The row.names of inbred_gen must be provied. It can be obtained from the original genotype using convertgen function.

hybrid_phe

a data frame with three columns. The first column and the second column are the names of male and female parents of the corresponding hybrids, respectively; the third column is the phenotypic values of hybrids. The names of male and female parents must match the rownames of inbred_gen. Missing (NA) values are not allowed.

Value

A list with following information is returned:

$add additive genotypes of hybrids

$dom dominance genotypes of hybrids

Examples


## load example data from hypred package
data(hybrid_phe)
head(hybrid_phe)
data(input_geno)

## convert original genotype
inbred_gen <- convertgen(input_geno, type = "hmp2")

gena <- infergen(inbred_gen, hybrid_phe)$add
gend <- infergen(inbred_gen, hybrid_phe)$dom


predhy documentation built on Nov. 10, 2022, 6:13 p.m.

Related to infergen in predhy...