allhap: Find all possible haplotypes

Description Usage Arguments Details Value Examples

View source: R/PolyHaplotyper.R

Description

Find all possible haplotypes for a haploblock from the haplotyping result

Usage

1
allhap(hapresults, haploblock)

Arguments

hapresults

list as returned by inferhaplotypes, or one element of such a list (i.e. the results for one haploblock)

haploblock

if hapresults is one element of the return value of inferHaplotypes, haploblock should be missing of NULL; else haploblock is a single value indicating the haploblock: either its name of its index in hapresults

Details

This function works with the results of inferHaplotypes; the setting of dropUnused does not affect this function

Value

an array with all possible haplotypes. The haplotypes are in columns, with the haplotype numbers as colnames; the markers are in rows.

Examples

1
2
3
4
data(PolyHaplotyper_small)
# show the composition of all possible haplotypes with the markers
# in the first haploblock:
allhap(hapresults=phresults, haploblock=1)

PolyHaplotyper documentation built on June 17, 2021, 5:12 p.m.