update_gbs_parents: 'Update GBS.array object'

Description Usage Arguments Value Examples

View source: R/create_array.R

Description

Update GBS.array object slot gbs_parents.

Usage

1
update_gbs_parents(GBS.array, ipdat)

Arguments

GBS.array

input object.

ipdat

a data.frame of imputed gbs parents.

Value

Return updated GBS.array object.

Details of the GBS.array objects. Slot1: true_parents, a list of data.frame(hap1, hap2). Slot2: gbs_parents, a list of genotypes. For example, c(1, 2, 2, 0, 3). Slot3: true_kids, a list of data.frame(hap1, hap2). Slot4: gbs_kids, a list of kid genotypes. For example, c(1, 1, 3, 1, 2). Slot5: pedigree, a data.frame (kid, p1, p2). Note, p1 is the focal parent. Slot6: freq, a vector of reference allele freq for all SNPs.

See https://github.com/yangjl/imputeR/blob/master/vignettes/imputeR-vignette.pdf for more details.

Examples

1
update_gbs_parents(GBS.array, ipdat)

yangjl/imputeR documentation built on May 4, 2019, 2:28 p.m.