Learn R Programming

BVS (version 4.12.1)

hapBVS: Function to estimate and report a set of haplotypes given a subset of variants

Description

This function takes a subset of variants and estimates a set of haplotypes. Only haplotypes with a frequency greater than min.Hap.freq are reported.

Usage

hapBVS(G,min.Hap.freq)

Arguments

G
an (n x g) matrix of a subset of g SNPs of interest that are each coded as a numeric variable that corresponds to the number of copies of minor alleles (0|1|2)
min.Hap.freq
the minimum haplotype frequency of which an estimated haplotype is reported

Value

This function outputs a matrix of estimated haplotypes.