count_haplotype_occurrences_pedigree {malan}R Documentation

Count haplotypes occurrences in pedigree

Description

Counts the number of types haplotype appears in pedigree.

Usage

count_haplotype_occurrences_pedigree(
  pedigree,
  haplotype,
  generation_upper_bound_in_result = -1L
)

Arguments

pedigree

Pedigree to count occurrences in.

haplotype

Haplotype to count occurrences of.

generation_upper_bound_in_result

Only consider matches in generation 0, 1, ... generation_upper_bound_in_result. -1 means disabled, consider all generations. End generation is generation 0. Second last generation is 1. And so on.

Value

Number of times that haplotype occurred in pedigree.

See Also

pedigree_haplotype_matches_in_pedigree_meiosis_L1_dists().


[Package malan version 1.0.3 Index]