get_haplotypes_individuals: Get haplotype matrix from list of individuals

View source: R/RcppExports.R

get_haplotypes_individualsR Documentation

Get haplotype matrix from list of individuals

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

get_haplotypes_individuals(individuals)

Arguments

individuals

Individuals to get haplotypes for.

Value

Matrix of haplotypes where row i is the haplotype of individuals[[i]].

See Also

get_haplotypes_pids().

Examples

sim <- sample_geneology(100, 10)
peds <- build_pedigrees(sim$population)
pedigrees_all_populate_haplotypes(peds, 2, c(1, 1))
get_haplotypes_individuals(sim$end_generation_individuals)


malan documentation built on July 4, 2024, 9:09 a.m.