get_haplotype: Get haplotype from an individual

Description Usage Arguments Value See Also Examples

View source: R/RcppExports.R

Description

Requires that haplotypes are first populated, e.g. with pedigrees_all_populate_haplotypes(), pedigrees_all_populate_haplotypes_custom_founders(), or pedigrees_all_populate_haplotypes_ladder_bounded().

Usage

1
get_haplotype(individual)

Arguments

individual

Individual to get haplotypes for.

Value

Haplotype for individual.

See Also

get_haplotypes_individuals() and get_haplotypes_pids().

Examples

1
2
3
4
sim <- sample_geneology(100, 10)
peds <- build_pedigrees(sim$population)
pedigrees_all_populate_haplotypes(peds, 2, c(1, 1))
get_haplotype(sim$end_generation_individuals[[1]])

malan documentation built on July 2, 2020, 3:01 a.m.