hap_snp_red: Combination of haplotypes

View source: R/hap_snp_red.R

hap_snp_redR Documentation

Combination of haplotypes

Description

Combine haplotype frequencies according to the reduced haplotype structural matrix created through SNP based test/haplotype blocks.

Usage

hap_snp_red(red_snp, frequency_matrix)

Arguments

red_snp

Binary matrix, the reduced haplotype structural matrix with reduced SNPs.

frequency_matrix

Numeric matrix, with each i,j element being the frequency of haplotype i at sequenced time point j.

Value

A reduced haplotype frequency matrix (if haplotypes are combined due to reduced SNPs). Remains unchanged from the input frequency_matrix if no combination of haplotypes occurred.

See Also

haplotest()


xthchen/haplotest documentation built on Nov. 29, 2022, 12:07 p.m.