infergen: Infer Genotype of Hybrids

Description Usage Arguments Value Examples

View source: R/infergen.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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 Aug. 16, 2021, 5:07 p.m.

Related to infergen in predhy...