count_haplotype_occurrences_individuals: Count haplotypes occurrences in list of individuals

View source: R/RcppExports.R

count_haplotype_occurrences_individualsR Documentation

Count haplotypes occurrences in list of individuals

Description

Counts the number of types haplotype appears in individuals.

Usage

count_haplotype_occurrences_individuals(individuals, haplotype)

Arguments

individuals

List of individuals to count occurrences in.

haplotype

Haplotype to count occurrences of.

Value

Number of times that haplotype occurred amongst individuals.

See Also

pedigree_haplotype_matches_in_pedigree_meiosis_L1_dists(), count_haplotype_near_matches_individuals().

Examples

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


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